source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/vmi/include/interleave.h @ 2090

Revision 2090, 991 bytes checked in by gumbau, 17 years ago (diff)
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
9namespace       VMI
10{
11typedef struct _VertexIL {
12    GLfloat tx, ty;     // texture coordinates
13    GLubyte r, g, b, a; // color
14    GLfloat x, y, z;    // position
15} VertexIL;
16
17extern VertexIL *intertwined;
18
19typedef struct _Vertex_{
20    GLfloat x, y, z;    // position
21} Vertex_;
22extern GLuint vertex_buf, color_buf;
23
24extern void setupInterleave(Mesh *mesh, Color *colors);
25extern void setupVertexArray(Mesh *mesh, Color *colorss);
26extern void updateVertexArray(Mesh *mesh);
27extern void setupVertexBufferObjects(Mesh *mesh, Color *colors);
28extern void updateVertexBufferObjects(Mesh *mesh);
29extern void printInterleave(int numTriangles);
30extern void updateAllColorInterleave(Mesh *mesh, Color *colors);
31extern void updateColorInterleave(Mesh *mesh, Color *colors, GLuint begin, GLuint end);
32extern void fillColorInterleave(Mesh *mesh, GLuint begin, GLuint end, GLubyte color);
33
34}
35#endif
Note: See TracBrowser for help on using the repository browser.