Original Post
wondering what the best way to do this is, from an OOP standpoint. when the class is called 2 different textures are loaded from the constructor. this is done by way of a function call into my .bmp reader. in my .bmp reader i do the glGenTextures, then depending on what number i sent in to it from the class it will do 1D, 2D or 3D textures, using various different setups from the texture calls. this also included the Binding of the textures. back in my class i want to do a conditional statement that will determine on which texture gets used. this takes place when i am renderingmy terrain, applying the normals to the terrain and calculating what the texture coordinate for that vertex will be. this is also in a display list. having all of this information what would be the way/best way to swap between the two textures...