Advertisement

Loading Multiple Textures

Started by November 16, 2000 11:37 PM
1 comment, last by PSioNiC 24 years ago
I know its a simple topic, but its been giving me the hardest time. I can''t for the life of me get more than 1 texture to load on the screen. Whichever texture I load last is the one that is displayed everywhere. I know it sounds like I am overridding the memory some where, but I can''t find it. I even tried copy and pasting NeHe''s code (yes, like a lamer) that loads two textures and it still dont work i''ve re-sized all of the arrays to support space for 2 textures, i''ve allocated enough memory (i think). If there is something im missing somebody tell me, or at least some layout all the things i have to do and/or watch for when loading more than one texture. would be a big help thanks
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"
I don''t know if this is your problem, but when you draw your scene you have to specify what texture you''re going to use for each face with the glBinTexture function.

Hope this helps you
Advertisement
ops.... glBindTexture

This topic is closed to new replies.

Advertisement