PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
Esfera.h
Go to the documentation of this file.
1 /*
2  * Esfera.h
3  *
4  * Created on: 01/09/2012
5  * Author: hallison
6  */
7 
8 #ifndef ESFERA_H_
9 #define ESFERA_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 class Esfera {
23 private:
24  GLfloat raio;
25  GLubyte meridianos;
26  GLubyte paralelos;
27 
28  GLfloat *cores;
29  GLfloat *vertices;
31  GLuint *indices;
32 
33  GLuint numIndices;
34  GLuint numVertices;
35  GLubyte *texture;
36 
37 public:
38  Esfera(GLfloat r, GLubyte m, GLubyte p);
39  Esfera(const Esfera *copiada);
40  virtual ~Esfera();
41 
42  GLfloat getRaio();
43  GLubyte getMeridianos();
44  GLubyte getParalelos();
45 
46  GLfloat *getCores();
47  GLfloat *getVertices();
48  GLuint *getIndices();
49 
50  GLuint getNumIndices();
51  GLuint getNumVertices();
52  GLubyte *getTexture();
53  GLfloat *getTextureCoordinates();
54 
55  void setTexture(GLubyte *texture);
56  void draw();
57 
58 };
59 
60 #endif /* ESFERA_H_ */