GoldenEye4ever
Programmer
Hi, I'm trying to develop a delphi app using OpenGL.
I've created my scene, but cannot apply an image to the 2D polygons that exist in the scene.
I can apply colors to them, but that's not what I want as a final result.
Sample Code:
...
glBegin(GL_POLYGON); // back - back label
glColor3f( 0, 0, 0 ); glVertex( x1, y1, z1 );
glColor3f( 0, 0, 0 ); glVertex( x1, y1, z2 );
glColor3f( 0, 0, 0 ); glVertex( x1, y2, z2 );
glColor3f( 0, 0, 0 ); glVertex( x1, y2, z1 );
glEnd();
...
Any help would be greatly appreciated.
I've created my scene, but cannot apply an image to the 2D polygons that exist in the scene.
I can apply colors to them, but that's not what I want as a final result.
Sample Code:
...
glBegin(GL_POLYGON); // back - back label
glColor3f( 0, 0, 0 ); glVertex( x1, y1, z1 );
glColor3f( 0, 0, 0 ); glVertex( x1, y1, z2 );
glColor3f( 0, 0, 0 ); glVertex( x1, y2, z2 );
glColor3f( 0, 0, 0 ); glVertex( x1, y2, z1 );
glEnd();
...
Any help would be greatly appreciated.