Re: [osg-users] Access to gl context

2017-11-13 Thread Trajce Nikolov NICK
Hi guys, here some snippet: osgViewer::CompositeViewer::Windows wins; viewer->getWindows(wins); osgViewer::GraphicsHandleWin32 *hdl = dynamic_cast(wins.at(0)); hdl->getWGLContext(); On Mon, Nov 13, 2017 at 1:45 PM, Christian Buchner <

Re: [osg-users] Access to gl context

2017-11-13 Thread Christian Buchner
Is this the function you're looking for? osgViewer::GraphicsHandleWin32::getWGLContext () I am having some trouble (despite the powers of Google) to find any OSG example code

[osg-users] Access to gl context

2017-11-10 Thread Poojan Prabhu
Hi, We are using shared context, but have custom drawables that use Vertex Array Objects. This causes a problem in the case of multiple windows (where each is a separate gl context). We can manage/create vaos depending on the gl context id that we are currently rendering with. But, we can't