Thread: NeHe Glaux replacement??

  1. #1
    Registered User
    Join Date
    Dec 2004

    Question NeHe Glaux replacement??

    Does anyone have any idea how to implement the glaux replacement from nehe into their tutorials? NeHe uses the glaux header for every tutorial, and Dev-C++ doesn't support it. I was told to replace it with the replacement they offer, and now that i have it, I can't figure out how to use it. My learning is halted. I can't load textures or pictures of any kind without this...meaning I can only create a world of colors like red and blue, but no buildings or anything. Also, I cannot figure out how to get the keys to function, because of the errors from glaux. At this point, I simply need to know how to insert the NeHe Glaux replacement in the NeHe tutorials.

    please help
    No signature...

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    If you download Nehe's Glaux replacement, and unzip it, you will get a .cpp file.

    Within that file is the definition for NeHeLoadBitmap.

    Remove <glaux.h> from your code, and use that function to load textures instead.

    You use it like this:

    if (!NeHeLoadBitmap("Data/NeHe.bmp", texture[0]))
    where texture is an array of Gluint.

  3. #3
    Registered User
    Join Date
    Dec 2004

    I can't...

    I can't get says GL_BGR_EXT undefined when I put in the replacement...Could you implement the glAux replacement( into Lesson 7( please? Maybe then I could understand where I need to mod.
    THanks for the help so far; I have asked this q before(it's been a while) and I have NEVER gotten an actual explanation.
    No signature...

  4. #4
    Registered User
    Join Date
    Mar 2005
    yes I'm having the same problem, is anyone can give some example of how implementing glaux replacement

  5. #5
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    If all you want glaux for is loading images into GLuints, why not use OpenIL?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Delayed Replacement Sort
    By Cpro in forum C++ Programming
    Replies: 3
    Last Post: 04-12-2007, 03:36 PM
  2. string padding and replacement functions
    By George2 in forum Tech Board
    Replies: 4
    Last Post: 11-19-2006, 01:40 AM
  3. My new website
    By joeprogrammer in forum A Brief History of
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  4. Glaux
    By Necrofear in forum Game Programming
    Replies: 1
    Last Post: 03-13-2005, 04:11 PM