vba textures?
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?
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.
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.
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);?
So would I just call glbindtexture before I call something like glDrawArrays(GL_TRIANGLES, 0, VertexCount);?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement