View Full Version : Display lists and textues... Something I should know?
Is it possible to bind a texture inside a display list... My code works if I bind it just before calling the display list, but not in the display list...
Yes this should work
Here is some sample code..
myDisplayListList = glGenLists(1); // start generation of the list
Can the problem be that you bind new textures INSIDE glBegin() and glEnd()? Not sure you can do that. To change texture, this might work.
glBindTexture() bind texture one
glBegin() draw first part
glBindTexture() bind texture two
glBegin() draw second part
You can actually do it like they said, but from experience puting glBindtexture in the display list gave me a big performance hit.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.