Original Post
🔒 Locked
Stupid vertex array question
Advertisement
didn''t write anything using d3d before, so i don''t know exactly, how vertexbuffer / indexbuffer work... but i think they''re similar to VertexArrays in OpenGL. i''ve just searched & the website with the tutorial i used seems not to exist any longer... maybe you''ll find what you''re looking for in the MSDN (keyword glDrawArrays()). if that''s not enough, tell me & i''ll post some short code that uses vertex arrays as an example. it''s not a hard to understand topic so the MSDN (or if not, my code) should be enough.
For index buffer-like functionality, use glDrawElements instead of glDrawArrays.
oops... yes... i''ve mixed up glDrawArrays() and glDrawElements(). :D
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement