Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ogl

texture mapping problem

This topic is 6204 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I''m trying to implement texture mapping using nehe''s tutorial and my program keeps crashing with unhandled exception glu32 how can I sort this out? cheers

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Need MUCH more info that this. system specs, exact error, and so on.

Share this post


Link to post
Share on other sites
I have LoadBMP(char* Filename) and LoadGLTextures() in DrawGLObjects class - where I draw all the object of my scene - I call the functions of the object in MyprojView class in OnPaint(). In initOpenGL() (in myprojView class) I have:
if (!LoadGLTextures())
{
return FALSE;
}

The program compiles fine but crashes with unhandled exception pointing to this line in LoadGLTextures():

glTexImage2D(GL_TEXTURE_2D, 0, 1, TextureImage[texnum]->sizeX, TextureImage[texnum]->sizeY,
0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[texnum]->data);

and stating error - can not access data, sizeX and sizeY

Edited by - ogl on November 26, 2001 6:26:34 AM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!