PDA

View Full Version : sharing of ARB buffer objects



Rafael
04-15-2003, 12:23 AM
Hallo,

I must share buffer objects between different rendering contexts. In the ARB buffer objects documentation it says:

"Note, however, that sharing requires that
buffer objects be server (not client) state, since it is not
possible to share client state"

what does this mean, how can I enable server states ? And what about sharing other resources like textures ?

Thanks,
Rafael

shinpaughp
04-15-2003, 10:23 AM
I'm no expert but the regular glEnable sets server states and glEnableClientState sets client states.

Zengar
04-15-2003, 12:14 PM
Originally posted by shinpaughp:
I'm no expert but the regular glEnable sets server states and glEnableClientState sets client states.

As far as I know, only vertex arrays are considered client states, so glEnableClientState is a vertex array API function. But VBO are always server objects(like textures etc.) - they are not managed by client, so you shouldn't have any problems with sharing them. If current drivers support this functionality. Why don't you simply try?

jwatte
04-15-2003, 07:13 PM
buffers, display lists, and textures are all shared using wglShareLists() (or similar functions on other platforms).

Rafael
04-15-2003, 11:26 PM
Thank you for your comments.
wglShareLists() should solve my problem.