Moved stuff from the window class to the window decorator.
[fail.git] / scenegraph / camera.h
bloba3f0f26a19ebf962d82729f9f54a42b87babd73d
1 #ifndef AWFUL_SCENEGRAPH__CAMERA_H_
2 #define AWFUL_SCENEGRAPH__CAMERA_H_
4 #include "common.h"
5 #include "matrix.h"
7 namespace sluggish
9 class Frame;
11 class Camera : public RefCounted
13 public:
14 Camera( const Frame* pFrame_ = 0 ) :
15 m_pFrame( pFrame_ )
19 bool setup() const;
21 void setFrame( Frame* pFrame_ )
23 m_pFrame = pFrame_;
26 static void LoadCurrent()
28 ms_CurrentCamMatrix.load();
31 static void MultCurrent()
33 ms_CurrentCamMatrix.mult();
36 private:
37 ConstPointer< Frame > m_pFrame;
38 static Matrix ms_CurrentCamMatrix;
42 #endif