(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-27-24 03:24 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - OpenGL: Display lists vs. Vertex pointers ?
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Cellar Dweller +
Posts: 41/138
Originally posted by BGNG
I might be mistaken, but aren't Vertex Array's an extension? I like to avoid extensions for the sake of allowing utmost compatibility.


From the OpenGL Programming Guide(4th edition): The Official Guide to Learning OpenGL, version 1.4 page 67:
"Vertex arrays became standard in Version 1.1 of OpenGL. Version 1.4 added support for storing fog coordinates and secondary colors in vertex arrays."
Disch
Posts: 54/202
Awesome. So my hunch is confirmed.

Thanks a bunch, guys. It's much appreciated. ^^
Guy Perfect
Posts: 130/451
It depends on what you're doing, but Display Lists are generally the best way to go. If you're doing objects that morph, then a Vertex Array would be faster since you wouldn't have to recompile the scene each frame. If you're doing a landscape that won't be changing, then you can use a Display List to keep it easy-to-reach for the GPU.

I might be mistaken, but aren't Vertex Array's an extension? I like to avoid extensions for the sake of allowing utmost compatibility.
Euclid
Posts: 19/83
Display List, definately.

But then you'll have to draw the things once first to put it into the display list though, I think of a display list as an "image ready to be bitblted onto the screen".
Disch
Posts: 53/202
I could go either way in this game I'm working on --- but I'm wondering which way is "better"... and by that I mean which tends to be faster/more efficient.

glBegin + glCallList + glEnd
vs
glVertexPointer + glTextureCoordPointer + glDrawArrays

Which would you guys recommend? I'm thinking glCallList would be faster, since the verteces you give it would be fixed and can be set up by OpenGL to be ready-to-render, whereas the glDrawArrays must fetch each vertex every time. But that's completely speculation on my part.

Any and all feedback appreciated. Thanks in advance.
Acmlm's Board - I3 Archive - Programming - OpenGL: Display lists vs. Vertex pointers ?


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.004 seconds; used 346.09 kB (max 385.30 kB)