PDA

View Full Version : Display Lists.



MrShoe
04-29-2001, 12:08 AM
Surprisingly I havent learnt display lists yet fully. I know they are used to speed up the rendering of multiple objects. I was wondering if you could but something else into a display list, eg: loading textures. If you could then loading a texture would be that much quicker... I dont know, just speculating...

Nutty
04-29-2001, 01:23 AM
No you cant load a texture in a display list.

zed
04-29-2001, 05:21 PM
anything thats not to do with opengl like loading textures (and also things that are see the documentation for specifics aint included in the display list)

//
new list
i=5
end list
//
i=0;
calllist()
printf("%d",i); // will print out 0

Benjy
04-30-2001, 12:31 PM
You may not be able to load textures, but you can bind a texture object (ie call glBindTexture). If you include a bind call for the correct texture in the display list before drawing geometry, it makes quite a neat way of drawing a textured object.