View Full Version : how to add textmap on glutSolidCube

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

05-04-2008, 12:48 AM
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, 02:58 AM
Can i get source of these geometric primitives from glut ?

05-07-2008, 03: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, 03:23 AM
Thank For share. God bless u.