Display Lists and Vertex Arrays

Started by jjones7947, May 20, 2005, 18:44:14

Previous topic - Next topic

jjones7947

My question is can either or both of these GL structures be built outside the display context?
For example, can I create them in the load process and pass them as data to the display?  I think that means that I would be passing them between contexts since creating them involves gl calls. As long as there is no state that must be preserved it should work.  
The problem is I don't know if that last statement is true.  Any insights?
Jim

princec

You can only make GL calls on the current context for the current thread. And that's that.

Cas :)

tomb

Well, vertex arrays can be created outside the context. It's just data in native memory. That memory can be referenced from different contexts. Maybe you are thinking of vertex buffer objects?