Advertisement

[Newbie] OpenGL Textures

Started by January 17, 2001 11:35 AM
0 comments, last by MikeH 23 years, 10 months ago
Thanks in advance for help on this... Now to the problem: Is there a way to change which texture is going to drawn inside a glBegin() and glEnd(). e.g glBegin(); Set Texture Draw Triangle Set Texture Draw Rectangle glEnd(); Right now if I try that, it will only render the first texture. Please let me know what I am doing wrong. Thanks, MikeH
Simple answer: NO!

You cannot change textures between glBegin() + glEnd().
You have to do it this way:

   Set Texture glBegin(); Draw Triangle glEnd(); Set Texture glBegin(); Draw Rectangle glEnd();  

This topic is closed to new replies.

Advertisement