opengl/ textures

Started by
0 comments, last by Bruno 23 years, 11 months ago
Hi I have a problem, that i don''t see a way to solve. This is concerning textures.., I''m making an editor for my 3d objects, and i want to render a button, that suppose is size is 100x30 pixels. If all the textures i can use in opengl have to be, a power of two, how can i render my button in a 100x30 rectangle?? thanks Bruno
Advertisement
Make the texture object with power-of-two-resolution and set the texture coordinates at the
lower-left: 0,0
lower-right: 1,0
upper-left: 0,1
upper-right: 1,1

OpenGL will zoom the textures to 100x30.

Visit our homepage: www.rarebyte.de.st

GA
Visit our homepage: www.rarebyte.de.stGA

This topic is closed to new replies.

Advertisement