PanoramaViewer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
CameraOld.h
Go to the documentation of this file.
1
/*
2
* Camera.h
3
*
4
* Created on: 09/09/2012
5
* Author: hallison
6
*/
7
8
#ifndef CAMERA_H_
9
#define CAMERA_H_
10
11
#include <jni.h>
12
#include <android/log.h>
13
#include <android/bitmap.h>
14
15
#include <GLES2/gl2.h>
16
#include <GLES2/gl2ext.h>
17
18
#include <stdio.h>
19
#include <stdlib.h>
20
#include <math.h>
21
22
23
class
CameraOld
{
24
private
:
25
GLfloat
mProjecao
[16];
26
GLfloat
mRotacao
[16];
27
GLfloat
mvMatriz
[16];
28
29
GLfloat
anguloX
;
30
GLfloat
anguloY
;
31
GLfloat
anguloZ
;
32
33
GLfloat
toRadian
(GLfloat angle);
34
public
:
35
CameraOld
();
36
virtual
~CameraOld
();
37
void
loadIndentity
(GLfloat *matriz);
38
void
translacao
(GLfloat x, GLfloat y, GLfloat z);
39
40
GLfloat *
matrixMultiply
(GLfloat *m1, GLfloat *m2);
41
42
void
rotacaoX
(GLfloat angulo);
43
void
rotacaoY
(GLfloat angulo);
44
void
rotacaoZ
(GLfloat angulo);
45
46
void
scale
(GLfloat sx, GLfloat sy, GLfloat sz);
47
48
GLfloat *
rotacaoGeral
(GLfloat
anguloX
, GLfloat
anguloY
, GLfloat
anguloZ
);
49
50
GLfloat *
getModelViewMatrix
();
51
GLfloat *
getProjectionMatrix
();
52
GLfloat *
getModelViewProjMatrix
();
53
54
};
55
56
#endif
/* CAMERA_H_ */
jni
Math
CameraOld.h
Generated on Wed Jul 10 2013 18:46:35 for PanoramaViewer by
1.8.3.1