How to apply texture to glutSolidCube
Hi,
I can find tutorials about mapping textures to polygons specifying vertices etc. but nothing regarding how to apply a texture to a cube (or other stuff) drawn with glut (glutSolidCube).
So, my question is: Is there any way of mapping a texture to a solid cube (and other solids) when using glutSolidCube?
Any help would be appreciated!
glutsolidcube doesnt supply texture coords thus its not possible (u could rig up a quasi working example with auto texture generation but thats most likely not what u want)
u will need to create a box model yourself with the desired texture coordinates
u will need to create a box model yourself with the desired texture coordinates
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement