PDA

View Full Version : TEXTURES & GLUT PRIMITIVES



VinceDeNice
07-04-2005, 07:04 AM
Hi everybody !
Is it possible to apply a texture on a glutSolidCube ? How can I do it ?
thanks for all,
Cya ;)
..::Vinc::..

jide
07-04-2005, 07:35 AM
I'm not 100% sure but I think cube cannot be mapped. It might be the same for spheres too. If you bound a texture before calling one of them and you don't have any texture then you have the answer.

07-04-2005, 09:50 AM
You can use opengl's automagic texture coordinate generation, but somehow I don't think that's what you had in mind.

Hlz

VinceDeNice
07-04-2005, 10:55 PM
automagic texture ?? what's that ?
If it's possible to map a simple primitive, i'm interested (easier way --> better !!)