PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
Matrix4.h
Go to the documentation of this file.
1 /*
2  * Matrix4.h
3  *
4  * Created on: 19 juin 2013
5  * Author: hallison
6  */
7 
8 #ifndef MATRIX4_H_
9 #define MATRIX4_H_
10 
11 #include <GLES2/gl2.h>
12 
13 namespace LayerSceneGraph {
14 
15 class Matrix4 {
16 private:
17  GLfloat *values;
18 public:
19  Matrix4();
20  Matrix4(GLfloat *v);
21  Matrix4(const Matrix4 *copy);
22  virtual ~Matrix4();
23 
24  GLfloat *getValues();
25  void setValues(GLfloat *v);
26 
27  void scale(GLfloat x, GLfloat y, GLfloat z);
28  void translate(GLfloat x, GLfloat y, GLfloat z);
29  void rotate(GLfloat alpha, GLfloat beta, GLfloat gamma);
30 
31  //Operations
35  Matrix4 operator*(GLfloat n);
36  GLfloat operator[](int i);
37 };
38 
39 } /* namespace LayerSceneGraph */
40 #endif /* MATRIX4_H_ */