Line | |
---|
1 | #ifndef __interleave_h_ |
---|
2 | #define __interleave_h_ |
---|
3 | |
---|
4 | #include "GL/glut.h" |
---|
5 | |
---|
6 | #include "color.h" |
---|
7 | #include "mesh.h" |
---|
8 | |
---|
9 | namespace VMI
|
---|
10 | { |
---|
11 | typedef struct _VertexIL { |
---|
12 | GLfloat tx, ty; // texture coordinates |
---|
13 | GLubyte r, g, b, a; // color |
---|
14 | GLfloat x, y, z; // position |
---|
15 | } VertexIL; |
---|
16 | |
---|
17 | extern VertexIL *intertwined; |
---|
18 | |
---|
19 | typedef struct _Vertex_{ |
---|
20 | GLfloat x, y, z; // position |
---|
21 | } Vertex_; |
---|
22 | |
---|
23 | extern void setupInterleave(Mesh *mesh, Color *colors); |
---|
24 | extern void setupVertexArray(Mesh *mesh, Color *colorss); |
---|
25 | extern void updateVertexArray(Mesh *mesh); |
---|
26 | extern void setupVertexBufferObjects(Mesh *mesh, Color *colors); |
---|
27 | extern void updateVertexBufferObjects(Mesh *mesh); |
---|
28 | extern void printInterleave(int numTriangles); |
---|
29 | extern void updateAllColorInterleave(Mesh *mesh, Color *colors); |
---|
30 | extern void updateColorInterleave(Mesh *mesh, Color *colors, GLuint begin, GLuint end); |
---|
31 | extern void fillColorInterleave(Mesh *mesh, GLuint begin, GLuint end, GLubyte color); |
---|
32 | |
---|
33 | } |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.