Jump to content
  • Advertisement
Sign in to follow this  
exorcist_bob

OpenGL capabilities of opengl

This topic is 4402 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

Hello, Does opengl have native support for vertex/index buffers? I just got done reading lesson 5 on nehe, and it seems they just submitted coordinants, whereas in direct3d, you have to fill a vertex buffer and then render it. Thanks, exorcist_bob

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by exorcist_bob
I see. However, I'm stuck programming using opengl 1.1 because I'm using visual c++. How can I bridge this gap?

Thanks,
exorcist_bob
Read the Forum FAQ.

Share this post


Link to post
Share on other sites
Vertex arrays and using indexed arrays to render is part of OpenGL 1.1 and so you won't need any extensions (for some documentation, look up glDrawElements).

However D3D's vertex and index buffers go further than that and allow you a certain degree of control over where in memory (AGP, vRam, etc.) the buffers are stored. To do this in OpenGL you need the Vertex Buffer Objects extension, which adds additional functionality on top of regular vertex arrays.

Share this post


Link to post
Share on other sites
Quote:
Original post by exorcist_bob
If it isn't an extension, can I still link it with opengl32.lib. Ex: glVertex3f


Of course. That's so simple that there is no need to ask.
If you want to work with features that are similar to D3D9, work with GL 1.5 or 2.0
Read
http://www.opengl.org/wiki/index.php/Getting_started

I suggest you use VBOs because you already know the D3D version.
http://www.opengl.org/wiki/index.php/GL_ARB_vertex_buffer_object

and search for some code on Nehe
http://nehe.gamedev.net/lesson.asp?index=09

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!