Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenGL in Delphi (texture mapping)???

Status
Not open for further replies.

GoldenEye4ever

Programmer
May 26, 2007
20
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top