Sign in to follow this  
Shadowwoelf

vba textures?

Recommended Posts

songho    268
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
Shadowwoelf    136
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
V-man    813
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this