Re: [osg-users] Extensions/State Update Question

2012-08-21 Thread Sergey Polischuk
Hi did you call viewer.realize() before attempting to get contextID from it? Cheers. 20.08.2012, 20:27, Jeremy Moles cubic...@gmail.com: Hello everyone! I have a bit of a strange question here, so please bear with me. I'll try to be as descriptive as I possibly can, though I'm certain I will

Re: [osg-users] Extensions/State Update Question

2012-08-21 Thread Jeremy Moles
On Mon, 2012-08-20 at 17:55 -0400, Jean-Sébastien Guay wrote: Hi Jeremy, nice to see you back writing graphics code! I finally have the time again! In the past, when I've needed to have a contextID in a custom Drawable, I've always gotten it from inside my drawable's drawImplementation.

[osg-users] Extensions/State Update Question

2012-08-20 Thread Jeremy Moles
Hello everyone! I have a bit of a strange question here, so please bear with me. I'll try to be as descriptive as I possibly can, though I'm certain I will misuse some terminology. I am adding support for the NV_path_rendering extension to OpenSceneGraph. This extension adds a number of new

Re: [osg-users] Extensions/State Update Question

2012-08-20 Thread Paul Martz
What you seem to be saying is that you want to set some OpenGL state once that applies to all contexts, and not have to set it every frame. AND, you don't want to have to add, then remove, a Camera draw callback just to make this happen). Is that a good synopsis of the issue? You could keep a

Re: [osg-users] Extensions/State Update Question

2012-08-20 Thread Jeremy Moles
On Mon, 2012-08-20 at 10:44 -0600, Paul Martz wrote: What you seem to be saying is that you want to set some OpenGL state once that applies to all contexts, and not have to set it every frame. AND, you don't want to have to add, then remove, a Camera draw callback just to make this

Re: [osg-users] Extensions/State Update Question

2012-08-20 Thread Jean-Sébastien Guay
Hi Jeremy, nice to see you back writing graphics code! In the past, when I've needed to have a contextID in a custom Drawable, I've always gotten it from inside my drawable's drawImplementation. IIRC it gets a State pointer and this contains a valid contextID. Same when I've needed to create