Commit 0264ee96 authored by Martok's avatar Martok

[glcArrayBuffer] fix usage example in comment

parent ad21b40f
......@@ -52,13 +52,13 @@ unit uglcArrayBuffer;
iBuffer.Bind;
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 8, Pointer(0));
glVertexPointer(3, GL_FLOAT, Sizeof(TVertex), Pointer(0));
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(2, GL_FLOAT, 8, Pointer(3));
glTexCoordPointer(2, GL_FLOAT, Sizeof(TVertex), Pointer(Sizeof(TgluVector3f)));
glEnableClientState(GL_NORMAL_ARRAY);
glNormalPointer(GL_FLOAT, 8, Pointer(5));
glNormalPointer(GL_FLOAT, Sizeof(TVertex), Pointer(Sizeof(TgluVector3f)+Sizeof(TgluVector2f)));
glEnableClientState(GL_INDEX_ARRAY);
glIndexPointer(GL_INT, 0, nil);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment