Robert Osfield
c65278e9dc
From Martin Aumueller, "
...
a collegue of mine noticed that on Windows and X11 the modifier state (such as
Alt or Ctrl) would be applied one key press too late: e.g. press & hold Alt,
press a, release Alt, press a, press a would generate the key sequence a,
Alt-a, a instead of Alt-a, a, a.
The problem is also present on Carbon. Moving the call to setModKeyMask in
front of the call to keyPress fixed it for me on Carbon and X11. I suppose
that this will fix the problem for Windows as well."
2007-04-25 09:32:12 +00:00
Robert Osfield
1fedab6b49
Fixed choice of display
2007-04-15 20:53:09 +00:00
Robert Osfield
84c4b86da8
Added an #include<unistd.h> and extern "C" around X11ErrorHandling to prevent Solaris build errros
2007-04-14 08:31:40 +00:00
Robert Osfield
9e8e07b373
Added usleep's to avoid X11 errors when doing X11 calls to close to changes in
...
window size or decoration.
2007-04-13 14:54:22 +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
8dc2a28945
Removed WindowData parameter from init().
2007-03-26 16:28:26 +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
3fe4be6e70
Added context sharing support.
2007-02-15 12:24:04 +00:00
Robert Osfield
87ff8e2b55
Added support for sharing context to GraphicsWindowX11
2007-02-14 20:14:45 +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
34847e4135
Added better clean up of paramters on X display in GraphicsWindowX11:closeImplementation
2007-02-08 11:30:57 +00:00
Robert Osfield
10593edfd0
From Stefan Eilemann, addd more extensive XErrorHandler output
2007-02-08 11:26:04 +00:00
Robert Osfield
6835996c21
Added very simple relaxing of traits by dividing required red, green, blue, alpha and depth by 2.
2007-01-28 17:32:41 +00:00
Robert Osfield
552293eb03
Added extra methods WindowSystemInterface for controlling frame rate and resolution, and adde useCursor flag.
2007-01-17 21:11:57 +00:00
Robert Osfield
16d1c00a3d
Changed the return types of makeCurrent to bool, and added a bool GraphicsContext::releaseContext method
...
along with implementations in osgViewer.
2007-01-08 19:29:59 +00:00
Robert Osfield
23ac972d4e
Added a workaround for computing the time of an event.
2007-01-05 13:01:08 +00:00
Robert Osfield
3d1c971bca
Removed commented out checkEvents calls
2007-01-05 12:22:24 +00:00
Robert Osfield
73fffe1800
Made Refernced::setThreadSafeReferenceCounting(bool) a virtual then overrode
...
this in various scene graph classes to ensure that the scene graph gets
updated as well as the objects that the initialial call is made from.
2007-01-04 16:49:58 +00:00
Robert Osfield
a0374d7c85
Added glXDestryContext to help clean up OpenGL.
2007-01-04 14:34:53 +00:00
Robert Osfield
0ec854a365
Added support for starting and stopping osgViewer::Viewer threading and
...
automatic handling of windows being closed.
2007-01-04 11:49:15 +00:00
Robert Osfield
23206270e0
Added catch of window close
2007-01-03 23:00:05 +00:00
Robert Osfield
4f87afdbf5
Improved the robustness of thread start and cancellation
2007-01-03 16:06:12 +00:00
Robert Osfield
d068f7025a
Added support for getting all windows and hiding the cursor
2007-01-02 12:50:57 +00:00
Robert Osfield
8ce8061dbe
Added mouseWarped update
2007-01-01 20:01:45 +00:00
Robert Osfield
7155f7d1b0
Various work on osgViewer library, including warp point and graphics window resize support
2007-01-01 18:20:10 +00:00
Robert Osfield
6a74240d22
Various tweaks to keep in sync with new changes to osg::Timer and osgGA::EventQueue
2006-12-26 17:38:47 +00:00
Robert Osfield
39c0c2df76
Unified the osg::GraphicsThread::Operation and osg::GraphicsContext::Operation classes
...
as osg::GraphicsOperation. Unpdated parts of OSG depending upon these.
Added a virtaul bool valid() method to osg::GraphicsContext to allow apps to
test whether a valid graphis context has been created or not.
2006-12-24 16:40:19 +00:00
Robert Osfield
76461b3ab2
Added support for sample and sampleBuffers to osg::GraphicsContext::Traits and
...
cleaned up the Traits naming
2006-12-22 21:53:44 +00:00
Robert Osfield
bd6b7d581e
Implemented perliminary multi-threading support in osgViewer::Viewer
2006-12-22 17:46:21 +00:00
Robert Osfield
4fc9af7ea0
Moved rendering support into GraphisContext, osgViewer::Viewer/View, and
...
added frame stamp updating and update traversal to osgViewer::Scene/Viewer.
Updated osgcamera example to use new Viewer API calls instead of using local
rendering calls.
2006-12-21 16:56:20 +00:00
Robert Osfield
8f9d2eeb46
Cleaned up the includes in the GraphicsWindowX11 header
2006-12-21 12:24:20 +00:00
Robert Osfield
a56d273fe3
Moved the implementation of GraphicsWindowX11 from the head into the src/osgViewer directory.
2006-12-21 12:19:14 +00:00