Commit Graph

273 Commits

Author SHA1 Message Date
Robert Osfield
afc77f9b39 Added support WindowingSystemInterface for querring the number of screens, the screen size and creating GraphicsContexts. 2006-12-17 20:49:01 +00:00
Robert Osfield
982a4db9e2 Added ViewPoint support into NodeVistor/CullStack/CullVisitor/LOD/PagedLOD etc to facilate
management of LOD settings for RTT cameras.
2006-12-15 17:27:18 +00:00
Robert Osfield
152c999f99 Updated wrappers 2006-12-05 22:10:36 +00:00
Robert Osfield
cf41b3128c Updated wrappers 2006-12-05 13:06:02 +00:00
Robert Osfield
56b7268c72 Added copying of plane to surface intersections in the osgUtil::PlaneIntersector class, and update wrappers. 2006-12-03 11:44:12 +00:00
Robert Osfield
8d85636b50 Fixed typo and updated wrappers 2006-11-30 18:42:38 +00:00
Robert Osfield
b7b4fd5928 Updated wrappers 2006-11-29 14:33:17 +00:00
Robert Osfield
55d1f65102 Still required for backwards compatibility 2006-11-28 20:45:24 +00:00
Robert Osfield
1c6565b4f5 Updated wrappers 2006-11-28 20:37:27 +00:00
Robert Osfield
9eedf4df1e Removed redundent wrapper 2006-11-28 16:50:51 +00:00
Robert Osfield
73fc7a0c1f Updated wrappers 2006-11-28 16:49:31 +00:00
Robert Osfield
fd2ffeb310 Renamed osg::CameraNode to osg::Camera, cleaned up osg::View.
Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer and GraphicsWindowProxy files.
2006-11-27 14:52:07 +00:00
Robert Osfield
a22bede80f Added new HeightAboveTerrain.cpp LineOfSight.cpp wrapper files 2006-11-22 09:10:14 +00:00
Robert Osfield
2aec799d98 Updated wrappers 2006-11-15 20:23:15 +00:00
Robert Osfield
2fbda800b7 Updated wrappers 2006-11-14 17:24:37 +00:00
Robert Osfield
d23c04018b Updated wrappers 2006-11-08 11:49:35 +00:00
Robert Osfield
c607a6dd7f Updated wrappers 2006-11-07 14:26:48 +00:00
Robert Osfield
5be6995022 Added IntersectionVisitor to wrappers 2006-11-02 18:58:01 +00:00
Robert Osfield
984ac93749 Updated wrappers 2006-11-02 12:32:41 +00:00
Robert Osfield
c615f7345c Updated wrappers 2006-10-30 12:39:05 +00:00
Robert Osfield
d5aaa6e530 Updatd wrappers 2006-10-26 16:02:38 +00:00
Robert Osfield
c892fafa1c Updated wrappers 2006-10-24 09:45:50 +00:00
Robert Osfield
5163c4a762 First cut at class interfaces and stubs for implementations for the new osgShadow NodeKit 2006-10-06 14:16:11 +00:00
Robert Osfield
fe575de98f Updated wrappers 2006-10-06 11:02:34 +00:00
Robert Osfield
f95a913daa Removed osgGA::GUIEventHandlerVisitor and osgGA::SetSceneVistor classes/headers as
this classes weren't being actively used the distribution, effectively being noops.
2006-10-06 09:54:45 +00:00
Robert Osfield
7c6b528588 Fixed bug related to clean up of text fonts. 2006-10-03 11:14:34 +00:00
Robert Osfield
ba7d27c9b2 From Chris Hanson, "These changes break out the implementation of the fill/wireframe/point, texture,
lighting and backface culling settings from the event handling code in StatesetManipulator
into public methods. The event handler now calls the public methods. This allows user code
to invoke this same functionality from non-keyboard event inputs without clashing with the
keyboard-invoked functionality."

From Robert Osfield, tweaks to the above to kepp the coding style the same as the rest of the OSG, also
made getPolygonMode() const, and updated the wrappers.
2006-10-01 19:19:31 +00:00
Robert Osfield
ef2498f3d1 Updated wrappers 2006-09-30 20:05:56 +00:00
Robert Osfield
e6b08dcda3 Various clean ups to comments 2006-09-30 16:30:31 +00:00
Robert Osfield
5c0eb0b013 Added bare bones osgGA::SimpleViewer class to help simplify OSG setup when embedding the OSG
into existing GUI applications, and for one one a single camera, single window is required.
2006-09-25 16:25:53 +00:00
Robert Osfield
78444878c3 Updated wrappers 2006-09-21 15:09:10 +00:00
Robert Osfield
5915584b37 Revised the osg::ClampColor API to allow vertex, fragment and read color clamping to
be applied together.
2006-09-12 09:26:42 +00:00
Robert Osfield
b2c244af59 Updated wrappers 2006-09-05 08:56:27 +00:00
Robert Osfield
22a5a8802c Updated wrappers 2006-09-04 13:22:51 +00:00
Robert Osfield
d2533dfcc0 Updated wrappers 2006-09-01 13:34:05 +00:00
Robert Osfield
38ee7c1213 Updated wrappers 2006-08-31 10:37:27 +00:00
Robert Osfield
3615f681a9 Updated wrappers 2006-08-29 12:31:07 +00:00
Robert Osfield
1055bd013d Updated wrappers 2006-08-28 10:49:37 +00:00
Robert Osfield
7ebf8f1fa7 Updated wrappers 2006-08-25 16:31:28 +00:00
Robert Osfield
ecee62e1c1 Updated wrappers 2006-08-25 09:03:26 +00:00
Robert Osfield
c00b708c0c Updated wrappers 2006-08-11 18:23:10 +00:00
Robert Osfield
4e2ce78e35 Added Vec4ub and removed UByte4 2006-08-09 12:56:37 +00:00
Robert Osfield
2616174b06 Added support for --affinity command line option for switch on procesor affinity where supported, 2006-08-08 11:27:36 +00:00
Robert Osfield
5889052f5a Updated wrappers 2006-08-03 16:04:43 +00:00
Robert Osfield
7eb7bbdb84 Updated wrappers 2006-08-02 21:09:25 +00:00
Robert Osfield
564ee34f76 Added Matrix*::getRotate()/setRotate(Quat), deprecating Matrix*::get(Quat&), Matrix*::set(Quat&) 2006-07-31 17:31:21 +00:00
Robert Osfield
b1994cc60d Fixed multi-threaded/multi-pipe crash when primitive stats where output in osgProducer::Viewer's stats. 2006-07-29 16:47:28 +00:00
Robert Osfield
f977d7c606 Updated osgunittests with a matrix invert unit test, and added a conditional
calling of invert_4x4 or invert_4x3 depending on the the right hand column of the matrix.

Updated wrappers
2006-07-28 13:48:08 +00:00
Robert Osfield
dbf1e05a71 UPdated wrappers 2006-07-19 19:49:28 +00:00
Robert Osfield
882a909df8 Updated wrappers 2006-07-18 20:53:16 +00:00
Robert Osfield
1efa9a01d7 Updated wrappers 2006-07-18 20:51:28 +00:00
Robert Osfield
5b10db3724 Updated wrappers 2006-07-18 12:48:48 +00:00
Robert Osfield
f2d50d943b Updated wrappers 2006-07-18 11:42:27 +00:00
Robert Osfield
5d59ab8227 Updated wrappers 2006-07-13 15:56:54 +00:00
Robert Osfield
dd6a33da49 Removed StateSet::ENCLOSE_RENDERBIN_DETAILS since it is rendendent, and
implemented the OVERRIDE_RENDERBIN_DETAILS.
2006-07-11 21:53:57 +00:00
Robert Osfield
6b1f793ea7 Updated wrappers 2006-07-06 14:10:37 +00:00
Robert Osfield
00fbfd4835 Updated wrappers. 2006-07-04 14:37:56 +00:00
Robert Osfield
b0d738384f Updated wrappers. 2006-07-04 13:56:38 +00:00
Robert Osfield
8b445af79b Updated wrappers. 2006-06-30 13:50:32 +00:00
Robert Osfield
30265ac0b3 Added support for RenderBin's have a local top level StateSet. This is now
used by default in the depth sorted bin.
2006-06-29 15:57:24 +00:00
Robert Osfield
2b293df713 Updated wrappers. 2006-06-29 11:00:08 +00:00
Robert Osfield
ee72373bfa Updated wrappers 2006-06-29 10:19:44 +00:00
Robert Osfield
3ca71e4398 Updated wrappers. 2006-05-16 21:32:37 +00:00
Robert Osfield
2fc17d3942 Updated wrappers 2006-05-04 19:39:58 +00:00
Robert Osfield
67f56dfd77 Updated wrappers. 2006-05-02 09:50:00 +00:00
Robert Osfield
f22d11903b UPdated wrappers 2006-04-25 13:50:07 +00:00
Robert Osfield
761a3b43ac From Brede Johansen, added MergeGeode visitor to osgUtil::Optimizer. 2006-04-06 14:06:22 +00:00
Robert Osfield
c8097c9b62 Updated wrappers. 2006-04-04 13:20:12 +00:00
Robert Osfield
fd76b4f87b Updated wrappers. 2006-03-17 22:25:32 +00:00
Robert Osfield
d43dbaeadd Build fixes 2006-03-14 13:18:21 +00:00
Robert Osfield
2b61cf0a1e From Farshid Lashkari, "The following patch adds a multisample option to the
osg::DisplaySettings class. OsgCameraGroup will now read the setting
from the DisplaySettings instead of hardcoding the value. I added the
following commandline option to be able to set the multisample value:

--samples <num>

One thing to note, OsgCameraGroup would previously check if the
computer is an SGI and set multisample to 4. I retained this check in
DisplaySettings to be backwards compatible."
2006-03-13 21:29:17 +00:00
Robert Osfield
1a16d6d6b0 Added an EventQueue directly into osgProducer::Viewer. 2006-03-13 13:19:37 +00:00
Robert Osfield
8229875432 Checked in the genwrapper generated Export.cpp. This does seem to be an eroneously
built file though since Export.cpp doesn't appear in the other plugins...  I have checked
it in here to keep the builds running, there isn't actually any useful body in the Export.cpp.
2006-03-09 15:16:18 +00:00
Robert Osfield
3246dde716 From Brede Johansen, new OpenFlight plugin!!!!!
By default the original flt plugin is still used, to select at runtime
the new plugin set the env OSG_OPEN_FLIGHT_PLUGIN=new
2006-03-08 21:38:37 +00:00
Robert Osfield
4fc4e60cc3 From Bob Kuehne, added osg::getGlVersion() and fixed a minor typo in Texture3D. 2006-03-08 16:11:54 +00:00
Robert Osfield
dbbabf87c6 Converted osgGA::GUIEventAdapter into a concrete class capable of respresenting
keyboard and mouse events.

Added osgGA::EventQueue class to support a thread safe event queue and adaption
of keyboard and mouse events.

Removed osgProducer::EventAdapter as GUIEventAdapter replaces it.

Adapted osgProducer and examples to work with the new changes to osgGA.
2006-03-08 14:09:47 +00:00
Robert Osfield
0d9ba0283e Updated wrappers. 2006-02-28 19:12:27 +00:00
Robert Osfield
a8255f6932 Updated wrappers. 2006-02-27 19:51:32 +00:00
Robert Osfield
cc235b7a1a Updated wrappers. 2006-02-22 19:28:34 +00:00
Robert Osfield
59ad441be1 Added BlenColour(Vec4) constructor and updated wrappers. 2006-02-09 12:20:42 +00:00
Robert Osfield
0f529d72ab Updated wrappers. 2006-01-21 13:02:03 +00:00
Robert Osfield
4535cc0c09 Added back in Switch::removeChild(Node*) 2005-12-16 11:04:33 +00:00
Robert Osfield
fcff441d5f Updated wrappers. 2005-12-15 19:38:24 +00:00
Robert Osfield
72554ca27e From Jason Beverage, added option to control whether simplification of
tiles is done during osgdem builds.
2005-12-15 16:30:31 +00:00
Robert Osfield
6ff781b5b0 Removed Switch::removedChild(Node*) as the Group::removeChild(Node*) implementation
should be sufficient, as it calls the virtual removeChild(uint,uint).
2005-12-15 15:50:17 +00:00
Robert Osfield
7d4acba022 Changed constructors to use unsigned int to get round VS6.0 + wrapper problems. 2005-12-09 16:00:01 +00:00
Robert Osfield
a8d7234a0b From Eric Wing, added missing removeChildren method. 2005-12-09 11:22:09 +00:00
Robert Osfield
53ee0ce3ec Added CameraNode::releaseGLObejcts() to help in clean up, and changed the
ordering in SceneView::flushDeleteGLObjects() so that fbo's are deleted
before any texture objects they use are deleted.
2005-12-08 10:06:57 +00:00
Robert Osfield
b835ec9ee9 Changed s/getGdalDataset() methods to use void* to avoid introspeciton wrapping problems. 2005-12-08 10:03:39 +00:00
Robert Osfield
27ad107378 Added new Node::getParentalNodePaths() method.
Added better handling in computeIntersections(..) of nodes that are internal
to the scene graph, correctly accounting for the accumulated transforms.

Changed the EventVisitor so that it only traveses active children rather than
all children.

Updated wrappers.
2005-12-07 15:29:29 +00:00
Robert Osfield
3f3c7b1df8 Added Camera::isRenderToTextureCamera() method, and improved support in PickVisitor
and IntersectVisitor for CameraNode, including the ignoring of render to texture cameras,
such that HUD's etc are still intersected against.
2005-12-07 11:36:56 +00:00
Robert Osfield
99be2cdb7f Moved PickVistor into osgUtil 2005-12-07 10:25:50 +00:00
Robert Osfield
4d658ae1ea Improved the PickVisitor to make it more flexible and robust. 2005-12-06 21:59:43 +00:00
Robert Osfield
22d5390784 From Louis Hamilton, fix to LightPoint's under 64 bit build, changing longs to ints in
colour conversion code.
2005-12-06 10:16:21 +00:00
Robert Osfield
8d8229cc05 From Marco Jez, hack/fix for VS compile/link problems related to STL containers. 2005-12-02 00:25:40 +00:00
Robert Osfield
daefa1cae6 Added releaseGLObjects to PrimitiveSet. 2005-11-25 12:31:04 +00:00
Robert Osfield
736a8433ca Added FBO deletion support, and better FBO querry and fallback mechansim in RenderStage. 2005-11-24 15:18:12 +00:00
Robert Osfield
e1dd759dd8 Changed CameraNode::getDataChangeMutex() to be a pointer rather than a reference to
get around osgIntrospeciton build problem with the OpenThreads::Mutex copy constructor being private.
2005-11-23 16:32:55 +00:00
Robert Osfield
74830f9ce1 Added multi-buffering of the CameraNode::_renderingCache to help cope with multiple graphis context usages. 2005-11-23 13:44:27 +00:00
Robert Osfield
f78a37be9c Simplified the TangentSpaceGenerator so that is automatically converts any models
with indices to one without indices and then runs the tangent space generation code on the result.
2005-11-22 21:14:26 +00:00
Robert Osfield
f77b38ae9c Added DatabasePager::s/getDrawablePolicy() to allow the way that the display list/VBO settings
are applied to loaded databases.
2005-11-22 13:14:00 +00:00
Robert Osfield
d0c9ef1e14 Added the ability for osgParticle::ParticleEffect to switch off the automatic setup.
Normally the automatic setup is useful, but in the case of the .osg support this automatic
update was forcing premature loading of imagery that wasn't necessarily, and can lead to
reports of looking for files that arn't present.
2005-11-18 17:04:55 +00:00
Robert Osfield
b0869a6f60 Added s/getCenter and s/getRotation methods, and updated wrapper. 2005-11-18 15:00:34 +00:00
Robert Osfield
39db6b28b3 Updated wrappers. 2005-11-17 17:45:04 +00:00
Robert Osfield
48b69d5b13 From Toshiyuki Takehei, typo fix of getTrackerMode(). 2005-11-14 11:08:16 +00:00
Robert Osfield
9d8fd69fa9 Change the KeySwitchMatrixManipulator so that it two sets of getMatrixManipulator
methods, two that takes an index,two that takes a key value.  Updated the ViewEventHandler
so the it now uses the getMatrixManipulatorWithIndex() method to avoid previous ambiguity.
2005-11-14 11:00:36 +00:00
Robert Osfield
0ec0327b96 Added scene stats support to osgProducer::ViewerEventHandler. 2005-11-11 17:00:36 +00:00
Robert Osfield
e5685bc1ac Added s/getMaxNumOfTextureUnits control to osgGA::StateSetManipulator, and set the default to 4. 2005-11-11 14:22:57 +00:00
Robert Osfield
86893a507f Updated wrappers 2005-11-10 15:27:49 +00:00
Robert Osfield
afab32079e Fixed typo of CoordinateSystem. 2005-11-10 11:56:18 +00:00
Robert Osfield
e8d6df7583 Addd OsgSceneHandler::s/getCleanUpOnNextFrame() and support for it in the draw() method,
when CleanUpOnNextFrame is enabled the next frame simple deleted OpenGL objects without doing any draw traversal.
2005-11-10 11:39:01 +00:00
Robert Osfield
0db6554d61 Updated wrappers 2005-11-09 20:30:47 +00:00
Robert Osfield
cb19d14d45 Updated wrappers. 2005-11-09 15:14:15 +00:00
Robert Osfield
06ec728b84 Updated wrappers. 2005-11-08 16:02:09 +00:00
Robert Osfield
8922bde081 Updated wrappers 2005-11-08 14:03:00 +00:00
Robert Osfield
4915259878 Improved support for texture subload/render to texture in various Texture classes
and RenderStage.
2005-11-04 12:08:16 +00:00
Robert Osfield
fb2d3ae108 Further work on added IO support from CameraNode. 2005-11-03 15:59:17 +00:00
Robert Osfield
e183c79f08 Updated wrappers 2005-11-03 10:18:19 +00:00
Robert Osfield
511dda8525 Updated wrappers. 2005-11-02 19:35:35 +00:00
Robert Osfield
e47d56ba88 Updated wrappers 2005-11-01 11:00:07 +00:00
Robert Osfield
c4ae277893 Updated wrappers. 2005-10-29 11:29:58 +00:00
Robert Osfield
d1de669f03 Updated wrappers. 2005-10-29 09:52:56 +00:00
Robert Osfield
669bd46d97 Updated wrappers. 2005-10-28 09:20:21 +00:00
Robert Osfield
9c51a3db8d Updated wrappers 2005-10-25 18:34:46 +00:00
Robert Osfield
e14262df85 Updated wrappers. 2005-10-25 14:01:50 +00:00
Robert Osfield
51f74bd37a Updated wrappers. 2005-10-24 13:49:19 +00:00
Robert Osfield
fb524952b6 Renamed osgUtil::RenderGraph to osgUtil::StateGraph 2005-10-13 12:51:00 +00:00
Robert Osfield
5f3ec7dbcb Updated wrappers. 2005-10-13 08:18:12 +00:00
Robert Osfield
e18cb598e6 Updated wrappers. 2005-09-29 13:07:26 +00:00
Robert Osfield
b9a74c87e1 From Jeremy Bell,
"My patch is a slight refactoring of the mac specific code in
Registry.cpp and FileUtils.cpp, specifically around the library and
resource file path initilialization methods. This patch cleans up a
lot of the mac specific code by moving repeated code into separate
local functions in FileUtils.cpp that are only compiled on mac builds.
It also adds one function to the API,
appendPlatformSpecificResourceFilePaths in FileUtils. This function
will mirror the already existing
appendPlatformSpecificLibraryFilePaths except for resource file paths.
Currently this function is empty except when built on the mac, in
which case it will add the application bundle's internal Resources
folder and the bundle's parent folder. Previously this code was
implemented as a separate mac specific #ifdef block in Registry.cpp
around the initDataFilePathList method. However, it now is implemented
in appendPlatformSpecificResourceFilePaths in FileUtils.cpp and the
initDataFilePathList method is now the same on all platforms. This
patch should behave the same as before on non-mac platforms.

This patch already includes the fix that Eric mentioned earlier. This
patch is based off of the 0.99 release code. I have tested this patch
using the following testing scheme:

Make a proper bundled application.
While Run from the Finder:
   Test that it finds plugins in its internal plugins path.
   Test that it finds resources in its internal resources path.
   Test that it finds resources in the bundle's parent directory
   Test that it finds plugins in the user's Application Support Directory
   Test that it finds plugins in the system's Application Support Directory
   Test that it finds plugins in the Network Application Support Directory
   Check the plugin and resource path lists after they have been
initialized to see if they are in the correct order

While Run from the command line (both from it's parent directory and
from inside the /Contents/MacOS directory) and repeat the above tests.
Check that it also finds plugins and resources within the paths
defined by various environment variables.

Now, Make an application that is NOT bundled/command line only
   Test that it does NOT try to look in an internal bundle
plugin/resource directory for plugins or resources.
   Test that it finds plugins/resources in the paths defined by the
environment variables.
"
2005-07-26 21:07:31 +00:00
Robert Osfield
d8a5c2e7ac Updated wrappers. 2005-07-23 19:08:02 +00:00
Robert Osfield
1e9fb4ab03 From Marco Jez (with tweaks by Robert Osfield) : clean up of inheritance from std::vector<> classes 2005-07-20 19:42:59 +00:00
Robert Osfield
b9e651baf1 Added new osg::GraphicsContext base class 2005-07-20 15:55:07 +00:00
Robert Osfield
9120a0ca2c Removed osgIntrospection wrappers 2005-07-20 14:31:54 +00:00
Robert Osfield
6b873f33f5 Updated wrappers 2005-07-20 08:03:37 +00:00
Robert Osfield
6778bc3981 Added wrapper projects and updates of autogenerated wrappers. 2005-07-19 20:40:29 +00:00
Robert Osfield
5c9bd792a3 Updated wrappers 2005-07-15 21:47:11 +00:00
Robert Osfield
38528c4952 Updated wrappers. 2005-06-08 13:20:09 +00:00
Robert Osfield
24849f3c70 Renamed ExplosionDebriEffect to ExplosionDebrisEffect 2005-05-25 16:42:36 +00:00
Robert Osfield
40ef0026df Updated doxgen docs. 2005-05-25 11:45:02 +00:00
Robert Osfield
e229a8cb67 Updates to clean up wrapper generation, and to update wrappers 2005-05-24 15:34:23 +00:00
Robert Osfield
00c3c5dc61 Tweaked wrappers by hand to get them to compile 2005-05-20 22:15:57 +00:00
Robert Osfield
f609185e03 Updated wrappers. 2005-05-20 21:12:57 +00:00
Robert Osfield
9e91e1e01b Updated wrappers. 2005-05-18 21:17:31 +00:00
Robert Osfield
895ed7916c Updated wrappers. 2005-05-17 11:11:58 +00:00
Robert Osfield
af0abf58ef Updated wrappers 2005-05-16 15:50:35 +00:00
Robert Osfield
8a6aaba351 Updated wrappers. 2005-05-16 11:22:25 +00:00
Robert Osfield
74bce0e410 Updated wrappers 2005-05-16 09:41:10 +00:00
Robert Osfield
2f91acdf98 Updated wrappers. 2005-05-13 14:36:42 +00:00
Robert Osfield
ec12a1091b Updated wrappers. 2005-05-12 20:06:39 +00:00