I''m having problems trying to get OpenGL to display multiple textures. I can load several textures, but my program only shows the very last texture I loaded. When I make a call to "glBindTexture", I still can''t change to a different texture.
I checked all the texture names to make sure that they are valid, and I''ve tried including the "glBindTexture" inside and outside of "gLBegin-glEnd" blocks, but to no avail. Any help will be greatly apprecaited. Thanks.
This is a very basic example which can be further optimized, but it''s a start. Also, if you''re going to use a texture manager and get texture pointers on the fly from it, the best data structure to use ultimately would be an array and each index as an id. But sometimes it''s easier to keep track with strings or some other type of key, for this the