Advertisement

OpenGL alternative for> IDirect3Device8::SetIndices

Started by December 05, 2001 06:15 PM
1 comment, last by freazer 23 years, 2 months ago
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!]
Advertisement
I''m amazed I hadn''t thought of that myself.. that is like the cheapest trick, too. Awesome thinking :-D

It worked :-D!!!!! Thank you!
Vote to unban David Ho!

This topic is closed to new replies.

Advertisement