View Full Version : How to use more than one Textures? (so fast as possible!)

08-21-2000, 02:28 PM
I want to use more than one textures but if I use glTexImage2D(...); to change the texture it is to slow!!!

How can I precreate the textures and how can I select them?

(Is there something with glGenTextures(); and glBindTexture(); ?)

08-21-2000, 04:43 PM
use glGenTextures to fill an array with 'texture objects' then bind a different texture to each element of the array. To select a texture you just use the array position that you bound it to.

08-22-2000, 03:22 AM
And what function could I use to select the texture?

08-22-2000, 09:00 AM
glBindTexture(GL_TEXTURE_2D, yourTextureList[YOURTEXTURE]);