no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@543 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-08 05:42:41 +00:00
parent fd32578876
commit aafdc57ce9
4 changed files with 6 additions and 9 deletions
+4 -3
View File
@@ -6,9 +6,10 @@ vector<vertex> verts;
void setarraypointers()
{
glVertexPointer(3, GL_FLOAT, sizeof(vertex), &verts[0].x);
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(vertex), &verts[0].r);
glTexCoordPointer(2, GL_FLOAT, sizeof(vertex), &verts[0].u);
vertex *buf = verts.getbuf();
glVertexPointer(3, GL_FLOAT, sizeof(vertex), &buf->x);
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(vertex), &buf->r);
glTexCoordPointer(2, GL_FLOAT, sizeof(vertex), &buf->u);
};
// generating the actual vertices is done dynamically every frame and sits at the