Jump to content
  • Advertisement
Sign in to follow this  
DanielsPitkevi?s

NeHe Legacy tutorial lesson 6

This topic is 2438 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

Good day everyone.
Well, I'm quite new to OpenGL, so I'm going through those Legacy tutorials found in nehe.gamedev.net website.
But in Lesson 6, there is a problem with function:

AUX_RGBImageRec *LoadBMP(char* Filename)
{
FILE* File = NULL;
if(!Filename)
{
return NULL;
}
File = fopen(Filename, "r");
if(File)
{
fclose(File);
return auxDIBImageLoad(Filename);
}
return NULL;
}



My compiler doesn't find auxDIBImageLoad(Filename); function.
Everything is going smoothly except this one. How could I fix it?

Error message:
undefined reference to `auxDIBImageLoadA@4'|

Share this post


Link to post
Share on other sites
Advertisement
And now, in the same Lesson 6, there is problem with initializing textures.
Even if I download the original code and compile it, it starts, asks for fullscreen and then message box pops up with - Initialization failed.

Share this post


Link to post
Share on other sites
You need to add the glaux.lib library, which is deprecated and doesn't ship with Windows anymore. You will have to write your own bitmap loading function or just use a new library, like SDL or SFML.

Share this post


Link to post
Share on other sites

You need to add the glaux.lib library, which is deprecated and doesn't ship with Windows anymore. You will have to write your own bitmap loading function or just use a new library, like SDL or SFML.


But how can I create my own image loader? I'm just starting, wanted to follow tutorials, but they are not working!
Maybe you have some script to share with for texture mapping?

Share this post


Link to post
Share on other sites

[quote name='robobrain' timestamp='1324049023' post='4894504']
You need to add the glaux.lib library, which is deprecated and doesn't ship with Windows anymore. You will have to write your own bitmap loading function or just use a new library, like SDL or SFML.


But how can I create my own image loader? I'm just starting, wanted to follow tutorials, but they are not working!
Maybe you have some script to share with for texture mapping?
[/quote]

You're in luck, NEHE updated the tutorial so it doesn't use glaux.h anymore. Check this out:

http://nehe.gamedev.net/tutorial/lesson_06_texturing_update/47002/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!