OpenSceneGraph/src/osgViewer
Robert Osfield 4759cb951e From Colin MacDonald, "In my application I have a custom graphics context class, derived from
osg::GraphicsContext, in order to give good integration with the
application's GUI toolkit.  This works really well.

However, I need to share OpenGL texture resources with the standard
osgViewer GraphicsContext implementations, in particular the
PixelBuffers.  This is essential for my application to conserve graphics
memory on low-end hardware.  Currently the standard osg implementations
will not share resources with another derived osg::GraphicsContext,
other than the pre-defined osgViewer classes e.g. PixelBufferX11 is
hardcoded to only share resources with GraphicsWindowX11 and
PixelBufferX11 objects, and no other osg::GraphicsContext object.

To address this in the cleanest way I could think of, I have moved the
OpenGL handle variables for each platform into a small utility class,
e.g. GraphicsHandleX11 for unix.  Then GraphicsWindowX11, PixelBufferX11
and any other derived osg::GraphicsContext class can inherit from
GraphicsHandleX11 to share OpenGL resources.

I have updated the X11, Win32 and Carbon implementations to use this.
The changes are minor.  I haven't touched the Cocoa implmentation as
I'm not familiar with it at all and couldn't test it - it will work
unchanged.

Without this I had some horrible hacks in my application, this greatly
simplifies things for me.  It also simplifies the osgViewer
implementations slightly.  Perhaps it may help with other users'
desires to share resources with external graphics contexts, as was
discussed on the user list recently."

Notes from Robert Osfield, adapted Colin's submission to work with the new EGL related changes.
2009-11-21 16:41:02 +00:00
..
CMakeLists.txt From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
CompositeViewer.cpp From Vincent Gadoury, "In osgViewer::Viewer and osgViewer::CompositveViewer, the DOUBLECLICK event type was not considered as a "pointer event" and thus was receiving the event state coordinates and button mask. As a result, a double-click event always had a button mask not including the double-clicked button, even if double-click event is a "button push" event. 2009-11-19 17:22:20 +00:00
DarwinUtils.h From Stephan Huber, "attached you'll find some bugfixes and enhancements for the Cocoa 2009-05-14 15:34:15 +00:00
DarwinUtils.mm From Bob Kuehne, "fix for 10.6/darwin: this fix changes what i believe to be a typo in the os x darwinutils file from ID to id, the proper objective-c name for a type." 2009-10-10 09:20:39 +00:00
GraphicsWindowCarbon.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
GraphicsWindowCocoa.mm From Stephan Huber, "ttached you'll find a small fix for the 2009-07-13 08:30:20 +00:00
GraphicsWindowWin32.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
GraphicsWindowX11.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
HelpHandler.cpp Changed HelpHandler so it supports use with CompositeViewer and Viewer 2007-09-30 19:15:32 +00:00
PixelBufferCarbon.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
PixelBufferCocoa.mm From Stephan Huber, support for Cocoa windowing under OSX. 2009-03-10 10:13:20 +00:00
PixelBufferWin32.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
PixelBufferX11.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
Renderer.cpp Added state.checkGLErrors() calls to help in debugging of GLES 2 port 2009-11-10 11:34:31 +00:00
Scene.cpp Moved the ImagePager update to before the main scene graph update traversal 2009-11-20 14:40:58 +00:00
ScreenCaptureHandler.cpp From Colin MacDonald, "In my application I have a custom graphics context class, derived from 2009-11-21 16:41:02 +00:00
StatsHandler.cpp From Mathias Froehlich, "This change eliminate an orphan stats block that sticks somewhere in the 2009-10-10 10:58:39 +00:00
Version.cpp From David Callu, improved consistency of Version strings and add version support 2007-09-05 17:12:24 +00:00
View.cpp <iterator>, <stdlib.h> and <ctype.h> includes required for QNX compiler 2009-11-17 14:06:07 +00:00
Viewer.cpp From Vincent Gadoury, "In osgViewer::Viewer and osgViewer::CompositveViewer, the DOUBLECLICK event type was not considered as a "pointer event" and thus was receiving the event state coordinates and button mask. As a result, a double-click event always had a button mask not including the double-clicked button, even if double-click event is a "button push" event. 2009-11-19 17:22:20 +00:00
ViewerBase.cpp From Mathias Froehlich, "We are currently getting issues with locale settings and some osg plugins. 2009-06-25 16:07:49 +00:00
ViewerEventHandlers.cpp From Mathias Froehlich, "We are currently getting issues with locale settings and some osg plugins. 2009-06-25 16:07:49 +00:00