PDA

View Full Version : help required for displaying texture



abhishek vora
06-06-2008, 02:29 AM
Hi,

I need to display a texture on GLCanvas. The problem m facing is in getting vertex co-ordinates of al 4 corners of GLCanvas. Actually to display texture will b writing something like..

glBegin(..)
glVertex2d(1,1) glTexture2d(0,1)
...
...
...
glEnd()

In this how do we can know glVertex cordinates of 4 corners of GLCanvas. if instead of (1,1) I make it (6,1) it goes out of display window. So guide me to get vertex cordinates of 4 corners of GLCanvas.