Changeset 13041 for OpenSceneGraph/trunk/include/osg/RenderInfo
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/RenderInfo (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/RenderInfo
r11559 r13041 36 36 _state(state), 37 37 _view(view) {} 38 38 39 39 RenderInfo& operator = (const RenderInfo& rhs) 40 40 { … … 47 47 48 48 unsigned int getContextID() const { return _state.valid() ? _state->getContextID() : 0; } 49 49 50 50 void setState(State* state) { _state = state; } 51 51 State* getState() { return _state.get(); } 52 52 const State* getState() const { return _state.get(); } 53 53 54 54 void setView(View* view) { _view = view; } 55 55 View* getView() { return _view; } 56 56 const View* getView() const { return _view; } 57 58 void pushCamera(Camera* camera) { _cameras.push_back(camera); } 57 58 void pushCamera(Camera* camera) { _cameras.push_back(camera); } 59 59 void popCamera() { if (!_cameras.empty()) _cameras.pop_back(); } 60 60 61 61 Camera* getCurrentCamera() { return _cameras.empty() ? 0 : _cameras.back(); } 62 62
