Skip to main content
gamedev.net
๐Ÿ”’ Locked

glDrawElements

Started by ube83 Mar 11, 2003 at 3:49 PM 0 replies 200+ views
Original Post
ube83
ube83
hi, when using glDrawElements i can give opengl pointers to the vertex buffer, a texcoord buffer, etc. that all share the same index buffer. But is it possible to have a separate index buffer for texture coordinates? (there''s a separate index buffer for the texture coordinates in the .md2 file format) I couldn''t find anything in the opengl help files. If it is not possible, what else can i do to avoid multiple calls to glVertex and glTexCoord?
Brother Bob
Brother Bob
Separate indices for different arrays are not possible in OpenGL. You have to duplicate entries in the arrays so that you don''t need separate indices.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.