Robert Osfield
30e4eb833f
Updated wrappers
2007-06-03 10:00:09 +00:00
Robert Osfield
b5791629ea
Added Viewer::setUpViewerAsEmbeddedInWindow convinience method
2007-06-03 09:34:28 +00:00
Robert Osfield
179f903c90
Added osgViewer::GraphicsWindowEmbedded and ported GLUT, SDL and WX examples across from SimpleViewer to Viewer.
2007-06-02 15:31:21 +00:00
Robert Osfield
822868ca31
From Mathias Froelich, "have done an interface to change the mouse cursor in the X11 graphics
...
window.
The win32 implementation is still in its original shape since I have no win32
implementation available.
I have chosen the enum approach for the first cut. That is benefitial since
the user does not need to track creation of mouse cursors for different
windows and displays in presence of multiple viewer windows.
The default set of available mouse shapes is the same set that was available
with glut. That set served many OpenGL applications well, so the hope is that
this is enough.
Even though, that implementation is still extensible:
I have digged out the way SDL defines new mouse cursors and added a still
documented out function prototype in the GraphicsWindow that can be used to
extend the current implemtation for arbitrary mouse shapes. That is not
implemented yet.
I hope that somebody with a win32 test system can catch up that implementation
on win32."
2007-06-01 19:43:28 +00:00
Robert Osfield
0e62b4f0e9
From Paul Martz, added Win32 export
2007-06-01 16:14:47 +00:00
Robert Osfield
78c831f850
Changed name of AnimationPathHandler to RecordCameraPathHandler
2007-06-01 10:42:24 +00:00
Robert Osfield
5a80e4bfdc
From Jeremy Moles, new event handler to record the camera path. A few small tweaks by Robert Osfield to make it more consistent with the old osgProducer::Viewer behavior.
2007-06-01 10:39:27 +00:00
Robert Osfield
02d2963df4
Updated version number, wrappers and readme for release
2007-05-28 10:17:52 +00:00
Robert Osfield
784383ac08
Added camera event callback support into osgViewer
2007-05-27 17:29:29 +00:00
Robert Osfield
d22208f701
Added extra checks to make sure that graphics operations arn't done on no longer valid graphics contexts
2007-05-21 18:46:57 +00:00
Robert Osfield
e138b956c5
From Stephan Huber, "attached you'll find some modifications and enhancements to the carbon's
...
implementation of GraphicsWindow:
- usage of WindowData, you can specify an existing window to use via
osg::Traits
- implementation of setScreenResolution and setScreenRefreshRate
- implementation of setWindowDecoration when window is already created.
There seems to be a bug regarding multiple threads and closing windows,
see my other mail on osg-users.
"
2007-05-20 13:42:41 +00:00
Robert Osfield
0d71586ee0
Added support for tracking the CoordinateSystemNode path, and passing this on to
...
camera manipulators.
2007-05-18 10:33:56 +00:00
Robert Osfield
cf9518f346
Added support for View::setFustionDistance(..)
2007-05-17 19:58:57 +00:00
Robert Osfield
9cfff7fa19
From Blasius Czink, "when creating windows with decorations (titlebar) the mouse position
...
should be adjusted."
2007-05-15 19:32:55 +00:00
Robert Osfield
55bd6129f4
Added include of GraphicsWindow to fix wrapper build error
2007-05-14 17:01:07 +00:00
Robert Osfield
74e968df76
Clean up comments and rebuilt wrappers.
...
Added extra event handlers to osgsimulator example
2007-05-14 16:14:40 +00:00
Robert Osfield
52b2548d31
Renamed ViewerEventHandler to ViewerEventHandlers
2007-05-14 15:16:26 +00:00
Robert Osfield
701ea582e5
Renamed the ScreenHandler to WindowSizeHandler, fixed the code style to be conform more
...
to the rest of the OSG, and moved the osgviewer across to using the event handlers
in osgViewer.
2007-05-14 15:07:04 +00:00
Robert Osfield
43549f3df6
From Serge Lages, "Here is a ViewerEventHandler file with a collection of helper handlers for osgViewer.
...
Most of the code is from the osgviewer application, I have took the fullscreen handler and the threading one, and I have just added a fonctionality to be able to change the screen resolution in windowed mode."
2007-05-14 14:41:22 +00:00
Robert Osfield
1cb4dfbcb5
Added new areThreadsRunning() method to Viewer and CompositeViewer.
...
Added removeView(View*) method to CompositeViewer
Added stopping/starting of threads in addView/removeView
2007-05-11 19:25:44 +00:00
Robert Osfield
63245f4147
Added getHWND, getHDC and getWGLContext methods
2007-05-10 10:52:35 +00:00
Robert Osfield
cfe746f795
From Martin Aumueller, fixed unused parameter warnings
2007-04-25 10:12:46 +00:00
Robert Osfield
abd0c7fe67
Added support for sorting the graphics contexts so that the first context/window
...
returned from Viewer::getContexts/getWindows will be the left most window on the lowest screen number.
Added ability for StatsHandler and HelpHandler to support end users setting their
Camera's graphics context.
2007-04-20 16:17:48 +00:00
Robert Osfield
934ed30314
Added setWindowRectangle implementation for GraphicsWindowWin32, and
...
place holder for setWindowRectangle implementation for GraphicsWindowCarbon.
2007-04-13 14:23:10 +00:00
Robert Osfield
035b98993f
Added s/getWindowRectangle to GraphicsWindow and implementation in GraphicsWindowX11
2007-04-13 13:22:52 +00:00
Robert Osfield
cc1ab2c711
Create new incliude/osgViewer/api directory to hold platform specific classes such as GraphicsWindow implementations.
...
Moved GraphicsWindowWin32,X11 and Carbon into their api/Win32, api/X11 and api/Carbon directories.
2007-04-10 11:03:37 +00:00
Robert Osfield
d30a33247d
Replaced the X11 Window by Carbon WindowRef in the WindowData structure.
2007-03-28 08:52:44 +00:00
Robert Osfield
8dc2a28945
Removed WindowData parameter from init().
2007-03-26 16:28:26 +00:00
Robert Osfield
ed9aa1c6bf
Removed now redundent method
2007-03-18 11:04:12 +00:00
Robert Osfield
aa28f60357
Added WindowData structures to GraphicsWindowX11,Win32 and Carbon to help support
...
GraphicsWindow inheriting their window handles from an external toolkit
2007-03-16 13:22:05 +00:00
Robert Osfield
f43cd7332c
Further work on add serialization support for osgViewer configurations
2007-02-25 20:05:23 +00:00
Robert Osfield
57c2939174
Added g/setUpdateVistor method
2007-02-19 20:57:08 +00:00
Robert Osfield
ed01ae9387
From André Garneau, Win32 build fixes
2007-02-15 14:04:22 +00:00
Robert Osfield
3fe4be6e70
Added context sharing support.
2007-02-15 12:24:04 +00:00
Robert Osfield
acf10c827e
Removed setFrameStamp
2007-02-15 08:29:09 +00:00
Robert Osfield
87ff8e2b55
Added support for sharing context to GraphicsWindowX11
2007-02-14 20:14:45 +00:00
Robert Osfield
f82c34ff11
Added getState()->setGraphicsContext(this); to the various GrpahicsWindow implementations
2007-02-14 17:28:33 +00:00
Robert Osfield
fe177e42d5
Added osgViewer::HelpHandler
2007-02-12 13:39:18 +00:00
Robert Osfield
2a9d2bb25a
Changed GraphicsWindowX11 so that it creates two Display* connextions to the Xserver,
...
one for the graphics thread, one for the main thread that querries events
2007-02-09 13:51:28 +00:00
Robert Osfield
19608966d0
Added the threading model to stats
2007-02-08 12:47:35 +00:00
Robert Osfield
b3b420de5d
Updated the handling of closing of windows
2007-02-08 12:14:26 +00:00
Robert Osfield
3de205ec45
Added new Viewer threading model options
2007-02-06 14:38:08 +00:00
Robert Osfield
bad2a4cc7c
Further work on support for ThreadPerCamera, and improved the efficiency of SingleThraeded
2007-02-06 11:03:13 +00:00
Robert Osfield
69da91620f
Convert GraphicsThread/GraphicsOperation to more generic OperationsThread/Operation.
...
This paves the way to running cull traversals in seperate threads.
Updated wrappers
2007-02-02 22:30:36 +00:00
Robert Osfield
158921574c
Improved the toggling on/off of thrading modes
2007-02-01 11:07:53 +00:00
Robert Osfield
8dfc5155f4
Further work on new threading model.
2007-01-31 22:24:20 +00:00
Robert Osfield
ecedc8d86a
Added Stats::collectStats(string,bool) controls, getAveragedAttribute methods into osg::Stats class, and
...
related support into osgViewer::Viewer and osgViewer::StatsHandler.
Added lazy updating of text in StatsHandler HUD to minimize the impact of
slow text updating on observed frame rates.
2007-01-30 11:40:23 +00:00
Robert Osfield
fd0ea388c2
Began work on providing support for threading camera cull traversals in parallel with
...
the previous frames draw traversal. Changes range from osg::State, through osgUtil::RenderBin, through to osgViewer
2007-01-29 22:44:29 +00:00
Robert Osfield
af6de09ab4
Added set/getRealizeOperation() to Viewer and CompositeViewer
2007-01-28 17:11:21 +00:00
Robert Osfield
7232a831da
Added osg::FrameStamp::set/getSimulationTime().
...
Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView
Added frame(double simulationTime) and advance(double simulationTime) parameters to
osgViewer::SimpleViewer, Vewer and CompositeViewer.
Updated various examples and Nodes to use SimulationTime where appropriate.
2007-01-25 12:02:51 +00:00