12 #include <android/log.h>
13 #include <android/bitmap.h>
15 #include <GLES2/gl2.h>
16 #include <GLES2/gl2ext.h>
25 #define VERTEX_BUFFER 0
26 #define COLOR_BUFFER 1
27 #define TEXTURE_BUFFER 2
28 #define INDICES_BUFFER 3
33 namespace LayerSceneGraph {
53 Mesh(GLfloat *pCoord, GLfloat *texCoord, GLfloat *normals, GLuint *ind,
54 GLuint numIndex, GLuint numVertex,
Texture *tex);
55 Mesh(GLfloat *pCoord, GLfloat *texCoord, GLfloat *normals, GLuint *ind,
56 GLuint numIndex, GLuint numVertex,
Texture *tex, GLfloat *colors);
57 Mesh(GLfloat *pCoord, GLfloat *colors, GLfloat *normals, GLuint *ind, GLuint numIndex, GLuint numVertex);
60 void loadMesh(
string filename);
64 void setTexture(
Texture *texture);