I’m trying to create gui.
I have 2 quads.
One with the first texture on it and one without a texture on it but with the same texture as the first one.
What I want is to be able to put 2 separate textures onto 2 separate quads?
how can this be done?
I’ve tried looking at the man pages and found out that I may have to use glTexCoordPointer apart from that I’m stumped :(.
here are my vertex/texture cordinates positions in a GLfloat container
I’m using GLSL 330/OpenGL 3.3
static const GLfloat GUIVertices[] = {
1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f,
-1.0f, 0.94f, 0.0f, 1.0f, 0.0f, 1.0f,
1.0f, 0.94f, 0.0f, 1.0f, 1.0f, 1.0f,
// x y z w X Y
1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 0.0f,
-1.0f,-1.0f, 0.0f, 1.0f, 0.0f, 0.0f,
-1.0f,-0.94f, 0.0f,1.0f, 0.0f, 1.0f,
1.0f, -0.94f, 0.0f,1.0f, 1.0f, 1.0,
};
thanks in advance