Changeset 32
- Timestamp:
- 03/28/07 19:03:01 (2 years ago)
- Files:
-
- trunk/pyosg/PyOSG/__init__.py (modified) (1 diff)
- trunk/pyosg/include/held_ptr.hpp (modified) (2 diffs)
- trunk/pyosg/modules.py (modified) (1 diff)
- trunk/pyosg/osg/BlendColor.cpp (modified) (2 diffs)
- trunk/pyosg/osg/BlendFunc.cpp (modified) (1 diff)
- trunk/pyosg/osg/LOD.cpp (modified) (1 diff)
- trunk/pyosg/osg/PagedLOD.cpp (modified) (1 diff)
- trunk/pyosg/osg/StateSet.cpp (modified) (1 diff)
- trunk/pyosg/osgProducer/EventAdapter.cpp (modified) (2 diffs)
- trunk/pyosg/osgProducer/OsgCameraGroup.cpp (modified) (1 diff)
- trunk/pyosg/osgProducer/Viewer.cpp (modified) (1 diff)
- trunk/pyosg/osgSim/OverlayNode.cpp (modified) (2 diffs)
- trunk/pyosg/osgUtil/RenderBin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pyosg/PyOSG/__init__.py
r3 r32 21 21 __all__ = ['Producer', 'osg', 'osgUtil', 'osgGA', 'osgDB', 'osgProducer', 'osgParticle', 'osgText', 'osgSim', 'osgFX'] 22 22 23 version_info = ( 0,8,0)23 version_info = (1,2,1) 24 24 build_info = 1 25 25 __version__ = "%d.%d.%d" % version_info trunk/pyosg/include/held_ptr.hpp
r23 r32 28 28 #include <osg/ref_ptr> 29 29 #include <osg/Node> 30 #include <osg/Version> 30 31 31 32 #define TEST_REF 1 … … 33 34 namespace osg { 34 35 36 // XXX need to check when this was added to OSG 37 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 35 38 template<class T> inline T * get_pointer(osg::ref_ptr<T> const & p) 36 39 { 37 40 return const_cast<T *>(p.get()); 38 41 } 42 #endif 39 43 40 44 #if 0 trunk/pyosg/modules.py
r15 r32 10 10 'osgProducer', 11 11 'osgSim', 12 'osgText', 12 # 'osgText', # disabled (temporarily) until it works with OSG 1.2 13 13 'osgUtil', 14 14 ] trunk/pyosg/osg/BlendColor.cpp
r3 r32 13 13 #include <boost/python/scope.hpp> 14 14 15 #include <osg/Version> 15 16 #include <osg/BlendColor> 16 17 … … 35 36 blend_color.def(init<>()) 36 37 .def("setConstantColor", &osg::BlendColor::setConstantColor) 38 #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 2)) 37 39 .def("getConstantColor", &osg::BlendColor::getConstantColor) 40 #endif 38 41 ; 39 42 } trunk/pyosg/osg/BlendFunc.cpp
r3 r32 40 40 .def(init<>()) 41 41 42 #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) 42 43 .def("setFunction", &osg::BlendFunc::setFunction) 44 #endif 43 45 .def("setSource", &osg::BlendFunc::setSource) 44 46 .def("getSource", &osg::BlendFunc::getSource) trunk/pyosg/osg/LOD.cpp
r3 r32 61 61 .def("addChild", (bool (LOD::*)(Node *, float, float)) &LOD::addChild) 62 62 63 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 63 64 .def("removeChild", &LOD::removeChild) 65 #else 66 .def("removeChildren", &LOD::removeChildren) 67 #endif 64 68 65 69 .def("setCenterMode", &LOD::setCenterMode) trunk/pyosg/osg/PagedLOD.cpp
r3 r32 63 63 &osg::PagedLOD::addChild) 64 64 65 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 65 66 .def("removeChild", &osg::PagedLOD::removeChild) 67 #else 68 .def("removeChildren", &osg::PagedLOD::removeChildren) 69 #endif 66 70 .def("setFileName", &osg::PagedLOD::setFileName) 67 71 .def("getFileName", trunk/pyosg/osg/StateSet.cpp
r3 r32 133 133 OSG_ENUM_MODE(USE_RENDERBIN_DETAILS); 134 134 OSG_ENUM_MODE(OVERRIDE_RENDERBIN_DETAILS); 135 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 135 136 OSG_ENUM_MODE(ENCLOSE_RENDERBIN_DETAILS); 137 #endif 136 138 } 137 139 } trunk/pyosg/osgProducer/EventAdapter.cpp
r3 r32 1 #include <osg/Version> 2 #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) 3 1 4 // Copyright (C) 2002-2005 Gideon May (gideon@computer.org) 2 5 // … … 49 52 50 53 54 #endif // #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) trunk/pyosg/osgProducer/OsgCameraGroup.cpp
r3 r32 258 258 &osgProducer::OsgCameraGroup::advance) 259 259 260 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 260 261 .def("realize", 261 262 (bool (osgProducer::OsgCameraGroup::*)(Producer::CameraGroup::ThreadingModel)) 262 263 &osgProducer::OsgCameraGroup::realize) 264 #endif 263 265 264 266 .def("realize", trunk/pyosg/osgProducer/Viewer.cpp
r3 r32 149 149 .def("realize", 150 150 (bool (Viewer::*)()) &Viewer::realize) 151 #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 2)) 151 152 .def("realize", 152 153 (bool (Viewer::*)(Producer::CameraGroup::ThreadingModel)) &Viewer::realize) 154 #endif 153 155 .def("update", 154 156 &Viewer::update) trunk/pyosg/osgSim/OverlayNode.cpp
r3 r32 46 46 /** Inform the OverlayNode that the overlay texture needs to be updated.*/ 47 47 48 #if ((OSG_VERSION_MAJOR==1) & (OSG_VERSION_MINOR < 1)) 48 49 overlaynode.def("setContinousUpdate", 49 50 &osgSim::OverlayNode::setContinousUpdate); … … 53 54 &osgSim::OverlayNode::getContinousUpdate); 54 55 /** Get whether the OverlayNode should update the overlay texture on every frame.*/ 56 #else 57 overlaynode.def("setContinuousUpdate", 58 &osgSim::OverlayNode::setContinuousUpdate); 59 /** Set whether the OverlayNode should update the overlay texture on every frame.*/ 55 60 61 overlaynode.def("getContinuousUpdate", 62 &osgSim::OverlayNode::getContinuousUpdate); 63 /** Get whether the OverlayNode should update the overlay texture on every frame.*/ 64 #endif 56 65 overlaynode.def("setOverlayClearColor", 57 66 &osgSim::OverlayNode::setOverlayClearColor); trunk/pyosg/osgUtil/RenderBin.cpp
r3 r32 116 116 117 117 .def("getStats", &osgUtil::RenderBin:: getStats) 118 #if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) 118 119 .def("getPrims", (void (osgUtil::RenderBin::*)(osgUtil::Statistics *))&osgUtil::RenderBin:: getPrims) 119 120 .def("getPrims", (bool (osgUtil::RenderBin::*)(osgUtil::Statistics *, int))&osgUtil::RenderBin:: getPrims) 121 #endif 120 122 ; 121 123
