mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 17:51:47 +01:00
Added the Grid, Camera, Level system
Basic player Started (Barely) on the TextureManager And other fixes
This commit is contained in:
@@ -3,8 +3,22 @@
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
Camera( );
|
||||
Camera( const Point2f& position, float scale = 1);
|
||||
|
||||
void SetPosition( const Point2f& position ) { m_Position = position; }
|
||||
void SetScale( const float scale ) { m_Scale = scale; }
|
||||
|
||||
const Point2f& GetPosition( ) const { return m_Position; }
|
||||
float GetScale( ) const { return m_Scale; }
|
||||
|
||||
void BeginRendering() const;
|
||||
void EndRendering() const;
|
||||
|
||||
Point2f TransformMouse (const Point2f& mousePos) const;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Point2f m_Position;
|
||||
float m_Scale;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user