how to send vertices to the renderer
I''m writing a simple 2D "engine" using ortho, and I''m trying to decide how to sent polys to OpenGL. I don''t really care that much about performance, but I don''t want immediate mode. I don''t want to use extensions, and it should run on low-end hardware.
Vertex arrays.
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Probably in 2D your bottleneck is fill rate so there is no real difference...and on low end hardware (and not only) passing glVertex2i can be FASTER than use VertexArrays (in theory VertexArrays should work better but it is not always true).
[edited by - blizzard999 on January 12, 2004 1:38:34 PM]
[edited by - blizzard999 on January 12, 2004 1:38:34 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement