Python: handle null pointers (represented as None in python).
[fail.git] / scenegraph / viewport.h
blob8d13502aa5b738ea53ef14a2f438dd3b853fdd72
1 #ifndef AWFUL_SCENEGRAPH_VIEWPORT_H_
2 #define AWFUL_SCENEGRAPH_VIEWPORT_H_
4 #include "camera.h"
5 #include "rendermgr.h"
7 namespace sluggish
9 class ViewPort
11 public:
12 ViewPort( const Camera* pCamera_ = 0 ) :
13 m_pCamera( pCamera_ ),
14 m_bClear( false )
18 void setRect( long Left_, long Top_, long Width_, long Height_ );
19 void setPerspective( float _Fov, float _Ratio, float _ZNear, float _ZFar );
20 bool beginScene() const;
21 void endScene() const;
23 void setCamera( const Camera* pCamera_ )
25 m_pCamera = pCamera_;
28 const Camera* getCamera() const
30 return m_pCamera;
33 void setClear( bool bClear_ )
35 m_bClear = bClear_;
38 private:
39 ConstPointer< Camera > m_pCamera;
40 bool m_bClear;
44 #endif