PDA

View Full Version : please help me in texture!



huangzl99
09-05-2001, 07:51 AM
I map a texture to a object and put it in the window first. then I need to put another object to the window. My problem is the second object is also mapped with the texture,

what should I do if I don't want the second object to be mapped with the texture?

please help!

Jerry

DaViper
09-05-2001, 08:25 AM
glDisable(GL_TEXTURE_2D);

huangzl99
09-05-2001, 08:52 AM
but use glDisable(GL_TEXTURE_2D); the privious texture is also disabled, can I separate them one use texture and onther don't?

Pat
09-05-2001, 09:15 AM
glEnable(GL_TEXTURE_2D);
'draw first object with texture

glDisable(GL_TEXTURE_2D);
'draw second object without texture