Jump to content
  • Advertisement
Sign in to follow this  
Shadowwoelf

vba textures?

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

Advertisement
I looked up vbo's but I cant seem to find any examples where they use textures with the quads. So if I want to use texture will I have to use immediate mode?

Share this post


Link to post
Share on other sites
I think your question is how to draw a polygon with texture, but other than in immediate mode. If so, please look for Vertex Array (VA) and VBO.

You can store st (uv) texture coordinates into a VBO or Vertex Array (VA) along with other vertex information, such as position, colour, normals, etc. But, actual texels are still in OpenGL texture object.

Share this post


Link to post
Share on other sites
But I am confused on how to use a vertex array or vbo with textures.

So would I just call glbindtexture before I call something like glDrawArrays(GL_TRIANGLES, 0, VertexCount);?

Share this post


Link to post
Share on other sites
Quote:
Original post by Shadowwoelf
But I am confused on how to use a vertex array or vbo with textures.

So would I just call glbindtexture before I call something like glDrawArrays(GL_TRIANGLES, 0, VertexCount);?


In order to bind a texture, you call glBindTexture. I think that's obvious and also there are plenty of examples on the net.

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!