Hi Robert,
Ah ok, so the GraphicsContext::Traits::sharedContext doesn't share the actual
context, but allows object sharing between contexts.
Thanks for clearing that up for me, I think this changes what I am looking for.
The reason that I am looking into this, is because of the following
meas
Hi Ben,
On 10 November 2017 at 11:11, Ben Meijering wrote:
> Isn't an opengl context already used by multiple windows when you use
> GraphicsContext::Traits::sharedContext ?
No. Sharing a GL object is not sharing the whole context.
If you want to continue trying to hack some kind of solution
Hi Robert,
Thanks again for your quick response.
Isn't an opengl context already used by multiple windows when you use
GraphicsContext::Traits::sharedContext ?
I also came across the following function:
BOOL WINAPI wglMakeCurrent(
HDC hdc,
HGLRC hglrc
);
A window device context can be
Hi Ben,
On 10 November 2017 at 09:41, Ben Meijering wrote:
> I want this 1 opengl context to be shared by multiple windows.
I am afraid OpenGL doesn't work in this way, an OpenGL context is tied
to a single window or pixel buffer.
Robert.
___
osg-user
Hi Robert,
Thank you for your response.
I don't want to share the context or GL objects in multiple threads.
Basically what I want is 1 draw thread for the 1 opengl context if have and 1
cull thread.
I want this 1 opengl context to be shared by multiple windows.
However, for each window that I
Hi Ben,
Neither the OSG or OpenGL can provide thread safe sharing of GL
objects when sharing contexts. If you want to run multiple context
with multiple threads you will have to keep these contexts
independent.
Robert.
On 9 November 2017 at 14:23, Ben Meijering wrote:
> Hi everyone,
>
> I want
Hi everyone,
I want to use the GraphicsContext::Traits::sharedContext to render multiple
views (in multiple windows) that share the same context.
I already read on some forums that the ThreadingModel::SingleThreaded should
be used.
However, I would still like to use ThreadingModel::DrawThread
7 matches
Mail list logo