View Full Version : how to add textmap on glutSolidCube

05-03-2008, 08:51 PM
who can help me how to add textmap on glutSolidCube

05-03-2008, 11:48 PM
The geometric primitives from glut do not generate texture coordinates (except for the teapot) (http://www.opengl.org/resources/libraries/glut/spec3/node80.html). It's best you write your own cube rendering code with appropriate texture coordinates

Ngoc Sang
05-07-2008, 01:58 AM
Can i get source of these geometric primitives from glut ?

05-07-2008, 02:08 AM
Download the source code here (http://www.xmission.com/~nate/glut.html). Extract it and look for glut_shapes.c in the "/lib/glut" directory.

Ngoc Sang
05-07-2008, 02:23 AM
Thank For share. God bless u.