Hello Johannes,
Johannes Brunen wrote:
> Hi,
>
> I'm using the class PassiveViewport in my application. The function
> 'activateSize' of PassiveViewport
> calls the parent's 'activateSize' function. This is unfortunate because
> this function calls
> 'glScissor(pl, pb, pw, ph)'. My application however, handles the scissor
> region independently.
hm, it fetches the current OpenGL viewport and uses that for the scissor
region, so it should not interfere with what your application sets.
Maybe you could set up more viewports if you are rendering to multiple
sub-rectangles of the screen ?
> Would it be possible to implement the PassiveViewport without calling
> the glScissor function or
> with calling it optionally, in order to not break any existing code
> relying on the current behavior?
I'm a bit more concerned about muddling concepts, since ATM the OpenGL
viewport and scissor region are combined in OSG::Viewport and both are
the same size. Maybe I'm too careful here, I'll see if Dirk wants to
convince me otherwise ;)
If all else fails we could perhaps add a DummyViewport that does no GL
calls whatsoever?
regards,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users