Hi,
I am trying a very simple program to texture a openGL quad using ofTexture. If i use tex.draw() it displays, so i am sure my texture is loaded, but my GL program isnt working. Following is my code
myapp::draw(){
tex.bind();
ofEnableArbTex();
glBegin(GL_QUADS);
glTexCoord2f(0.0, 0.0);
glVertex3f(10.0,10.0,0.0);
glTexCoord2f(0.0,1.0);
glVertex3f(100.0,10.0,0.0);
glTexCoord2f(1.0,1.0);
glVertex3f(100.0,100.0,0.0);
glTexCoord2f(1.0,0.0);
glVertex3f(10.0,100.0,0.0);
glEnd();
tex.unbind();
}
is there something missing?
Regards,
Paras.