Changeset 6208 in orxonox.OLD for branches/christmas_branche/src/util
- Timestamp:
- Dec 21, 2005, 2:47:30 AM (19 years ago)
- Location:
- branches/christmas_branche/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/util/state.cc
r6142 r6208 26 26 27 27 28 constPNode* State::camera = NULL;29 constPNode* State::cameraTarget = NULL;28 PNode* State::camera = NULL; 29 PNode* State::cameraTarget = NULL; 30 30 31 31 ObjectManager* State::objectManager = NULL; … … 34 34 * sets camera and target of the current Camera 35 35 */ 36 void State::setCamera( const PNode* camera, constPNode* cameraTarget)36 void State::setCamera(PNode* camera, PNode* cameraTarget) 37 37 { 38 38 State::camera = camera; -
branches/christmas_branche/src/util/state.h
r6142 r6208 25 25 ////////////// 26 26 /** @param camera the PNode to the Camera, @param cameraTarget the PNode to the Camera's target */ 27 static void setCamera( const PNode* camera, constPNode* cameraTarget);27 static void setCamera(PNode* camera, PNode* cameraTarget); 28 28 /** @returns a Pointer to the PNode of the Camera */ 29 static inline constPNode* getCamera() { return State::camera; };29 static inline PNode* getCamera() { return State::camera; }; 30 30 /** @returns a Pointer to the CameraTarget */ 31 static inline constPNode* getCameraTarget() { return State::cameraTarget; };31 static inline PNode* getCameraTarget() { return State::cameraTarget; }; 32 32 33 33 ////////////////////// … … 46 46 State(); 47 47 48 static const PNode*camera; //!< A reference to the camera49 static const PNode*cameraTarget; //!< A reference to the cameraTarget48 static PNode* camera; //!< A reference to the camera 49 static PNode* cameraTarget; //!< A reference to the cameraTarget 50 50 static PNode* nullParent; //!< A reference to the Null-PNode. 51 51 static ObjectManager* objectManager; //!< A referenct to the current ObjectManager
Note: See TracChangeset
for help on using the changeset viewer.