• Advertisement

Archived

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

I can't have more than ONE texture bmp!!! can anyone please help??

This topic is 6212 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 have successfully download some of NeHe''s tutorials on my Dev C++ compiler and all is good. But when I try to have MORE THAN ONE texture bitmap loaded I get problems, NOT compiler errors, just that I can only get one bitmap or the other NOT BOTH!!!! I want different pics for each side of my cube? Can anyone that already done that tell me how? Greatly appreaciate it, Thanks!!!

Share this post


Link to post
Share on other sites
Advertisement
If you are using NeHe''s base texture code do this:

Change: ''GLuint texture[1]'' to GLuint[number of textures]

Goto LoadGLTextures()

Change: AUX_RGBImageRec *TextureImage[1] to *TextureImage[number]

then do the ''if (TextureImage[tex_num]=LoadBMP(Filename)'' for each of the textures.

Hope this helps.

Share this post


Link to post
Share on other sites

  • Advertisement