Advertisement

Lesson 6 Texturing

Started by March 24, 2005 02:50 AM
1 comment, last by lc_overlord 19 years, 11 months ago
Hey all, this is my first post. I've gotten to lesson 6, the one about texturing and i've hit a bit of a wall. I can't use the AUX_RGBImageRec type because I don't have the glaux library. It says that there is alternate code but all the links on this site are no longer working... Also, I was reading and I heard that the AUX library isn't very good and has memory leaks and such. Could someone recommend another way to open up texture files and use them in OpenGL? Thanks alot.
The replacement files should work. Click here to try the link again.

A much better thing to use though is the IPicture. It is just one function that you call and it does everything for you. Download that project and look at the files for some more information.

To use the IPicture, all you do to work with textures is this:
GLuint texid;if( !BuildTexture( "Path/FileName.Extension", texid) ){   ... Error Reporting ...}

That's it! You can easily plug that functionality into the lesson and have fast and efficient image loading of multiple formats. Note that you will need to link in some additional windows libraries as well as include some additional header files. Look at the project to see which ones.

- Drew
Advertisement
Check my sig :P

This topic is closed to new replies.

Advertisement