PDA

View Full Version : Pleeeeeease help - Texture thing



bigtime
11-30-2003, 01:32 PM
Hi I am using windows and VC++, and the book says
use
glTexImage2D(GL_TEXURE_2D,something, something, ..... , image);
However How can I get an image named 'clock.jpg' and is stored in 'C:\images\'
do I type the following instead

glTexImage2D(GL_TEXURE_2D,something, something, ..... , 'C:\images\clock.jpg');
but the book also says that OpenGL doesn't regular image formatts

Thanking your attention to my matter

Ostsol
11-30-2003, 01:44 PM
Please don't post the same question in both forums. . . It tends to annoy some people here.

Anyways, you have to extract the raw data from the file. By itself, OpenGL doesn't recognize any image format in particular. Here's a tutorial that uses VC++ .NET:
http://www.gametutorials.com/download/OpenGL/TextureMapping3_OGL.zip

M/\dm/\n
11-30-2003, 08:11 PM
glRenderi(GL_DOOM_4, GL_PRECISION_HINT_NICEST);
http://www.opengl.org/discussion_boards/ubb/biggrin.gif