Sharing OpenGLGadget Context

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
benmalartre
User
User
Posts: 27
Joined: Thu Mar 14, 2013 11:24 am
Location: paris
Contact:

Sharing OpenGLGadget Context

Post by benmalartre »

Hi list!
As it is I can't find a way to share an OpenGLGadget Context, ie create and update all my VertexArrays only once for multiple OpenGLGadgets.
Will it be possible to add an optional arguments ParentID, feed with the common OpenGLGadget GadgetID:
Result = OpenGLGadget(#Gadget, x, y, Width, Height [, Flags,[ParentID]])?

For now I have to repush datas to GPU for every opened OpenGLGadget

Kind regards,

Ben