Changeset 20202
- Timestamp:
- 05/11/07 09:26:14 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/vrj/Draw/OpenSG/OpenSGApp.h
r20080 r20202 37 37 #include <OpenSG/OSGConfig.h> 38 38 #include <OpenSG/OSGThread.h> 39 #include <OpenSG/OSGRenderAction.h>40 39 #include <OpenSG/OSGMatrixCamera.h> 41 40 #include <OpenSG/OSGPassiveWindow.h> … … 43 42 #include <OpenSG/OSGPassiveBackground.h> 44 43 #include <OpenSG/OSGMatrixUtility.h> 44 45 #if OSG_MAJOR_VERSION >= 2 46 #include <OpenSG/OSGRenderTraversalAction.h> 47 #else 48 #include <OpenSG/OSGRenderAction.h> 49 #endif 45 50 46 51 /*----------------------------------------------------------------------------*/ … … 67 72 ; 68 73 } 69 74 #if OSG_MAJOR_VERSION >= 2 75 OSG::RenderTraversalAction* mRenderAction; /**< The render trav action for the scene */ 76 #else 70 77 OSG::RenderAction* mRenderAction; /**< The render action for the scene */ 78 #endif 79 71 80 OSG::PassiveWindowPtr mWin; /**< passive window to render with (the context) */ 72 81 OSG::PassiveViewportPtr mViewport; /**< passive viewport to render with (the context) */ … … 253 262 254 263 // Could actually make one of these per thread instead of context. 264 #if OSG_MAJOR_VERSION >= 2 265 c_data->mRenderAction = OSG::RenderTraversalAction::create(); 266 #else 255 267 c_data->mRenderAction = OSG::RenderAction::create(); 268 #endif 256 269 // c_data->mRenderAction->setAutoFrustum(false); // Turn off auto frustum 257 270 … … 336 349 337 350 glPopAttrib(); // Pop the attribute store 338 351 #if OSG_MAJOR_VERSION < 2 339 352 FINFO(("Frame done on Window %lx.\n", c_data->mWin.getCPtr() )); 353 #endif 340 354 } 341 355
