Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nagromo

how to send vertices to the renderer

This topic is 5278 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
OK, would I be able to call
GLBegin()
for(i=0...)
{
Object->Draw()
}
GLEnd()

I don''t think so. I don''t want to use GLBegin/End for every sprite. If that would work, I might use immediate mode, but there will be a variable number of objects.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!