ofTexture and openGL

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.

Which type of Texture ? Does it is power of two or what?

Hi Kalwalt,

Thanks for the quick reply. The texture was a non-power of two, it was just a .jpg image, but I figured out.
The texture coordinates weren’t supposed to normalized, I had given normalized coordinates, now I changed to actual pixel resolution and its working.

Thanks,
Paras.