Skip to main content
GameDev.net gamedev.net
🔒 Locked

fastest drawing

Started by giugio Aug 23, 2008 at 1:17 PM 3 replies 1.1k views
Original Post
giugio
giugio
Hy. What is the fastest method foe drawing in opengl ? VBO?Strips?Lists thanks
V-man
V-man
The fastest is static data shoved in a VBO with a correct layout and format.
Render using an index array (glDrawElements or glDrawRangeElements), GL_TRIANGLES.
Vertex attributes in general should be GL_FLOAT.
Index format GL_UNSIGNED_SHORT.
A quick sample is at
http://www.opengl.org/wiki/index.php/VBO#Sample_Code

[Edited by - V-man on August 24, 2008 10:52:32 AM]
iceware
iceware
The previous advice is correct. I second that.
giugio
giugio
Thanks , i read , but there is some of more detailed ,can you avice me a tutorial or better still a book ?
Thanks.
giugio
giugio
up

Topic Locked

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

Sign in to reply to this topic.