OpenGL alternative for> IDirect3Device8::SetIndices
What''s an OpenGL alternative for IDirect3DDevice8::SetIndices?
Most notably, the second parameter:
UINT BaseVertexIndex
[in] Base value for vertex indices. This value is added to all indices prior to referencing vertex data, defining a starting position in the vertex streams.
[taken from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/Graphics/Reference/CPP/D3D/Interfaces/IDirect3DDevice8/SetIndices.asp]
Ie.. adds to each individual index''s VALUE, not the index''s index. If it were as easy as changing a "first" in glDrawArray then I wouldn''t have to ask.
Thanks all!
Vote to unban David Ho!
I''m not sure exactly what this SetIndices function does, but couldn''t you get the same effect through manually adding an offset to the pointer passed to glVertexPointer?
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement