LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: jjones7947 on May 20, 2005, 18:44:14

Title: Display Lists and Vertex Arrays
Post by: jjones7947 on May 20, 2005, 18:44:14
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
Title: Display Lists and Vertex Arrays
Post by: princec on May 20, 2005, 19:14:58
You can only make GL calls on the current context for the current thread. And that's that.

Cas :)
Title: Display Lists and Vertex Arrays
Post by: tomb on May 20, 2005, 19:22:28
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?