Skip to main content
gamedev.net
🔒 Locked

Texture Problem

Started by saravananps Mar 17, 2005 at 12:31 PM 0 replies 450+ views
Original Post
saravananps
saravananps
I constructed a plane using the following code drawPlane(int width, int height) { int i, j; float dw = 1.0 / width; float dh = 1.0 / height; glNormal3f(0.0, 0.0, 1.0); for (j = 0; j < height; j++) { glBegin(GL_TRIANGLE_STRIP); for (i = 0; i <= height; i++) { glVertex2f(dw * i, dh * (j + 1)); glVertex2f(dw * i, dh * j); } glEnd(); } } Could any one help me to apply a Bitmap texture to this plane Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.