2
* Copyright © 2008 Danny Baumann
4
* Permission to use, copy, modify, distribute, and sell this software
5
* and its documentation for any purpose is hereby granted without
6
* fee, provided that the above copyright notice appear in all copies
7
* and that both that copyright notice and this permission notice
8
* appear in supporting documentation, and that the name of
9
* Dennis Kasprzyk not be used in advertising or publicity pertaining to
10
* distribution of the software without specific, written prior permission.
11
* Dennis Kasprzyk makes no representations about the suitability of this
12
* software for any purpose. It is provided "as is" without express or
15
* DENNIS KASPRZYK DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17
* NO EVENT SHALL DENNIS KASPRZYK BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
* Authors: Danny Baumann <maniac@compiz-fusion.org>
29
#include <opengl/vector.h>
36
GLMatrix (const float *);
38
const float* getMatrix () const;
40
GLMatrix& operator*= (const GLMatrix& rhs);
42
float& operator[] (unsigned int pos);
45
void toScreenSpace (const CompOutput *output, float z);
47
void rotate (const float angle, const float x,
48
const float y, const float z);
49
void rotate (const float angle, const GLVector& vector);
51
void scale (const float x, const float y, const float z);
52
void scale (const GLVector& vector);
54
void translate (const float x, const float y, const float z);
55
void translate (const GLVector& vector);
58
friend GLMatrix operator* (const GLMatrix& lhs,
60
friend GLVector operator* (const GLMatrix& lhs,