mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2026-02-04 09:19:19 +01:00
Basic screen system
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "utils.h"
|
||||
#include "../Game/Player.h"
|
||||
#include "../Game/WorldTile.h"
|
||||
#include "../Game/GridSystem/WorldTile.h"
|
||||
|
||||
namespace Collision
|
||||
{
|
||||
|
||||
@@ -65,6 +65,7 @@ Rectf::Rectf(float left, float bottom, float width, float height)
|
||||
, width { width }
|
||||
, height { height } {
|
||||
}
|
||||
Rectf::Rectf(Point2f pos, Point2f size): left(pos.x), bottom(pos.y), width(size.x), height(size.y) {}
|
||||
// Rectf::Rectf(int left, int bottom, int width, int height) : left { (float)left }, bottom { (float)bottom }, width { (float)width }, height { (float)height } {
|
||||
// }
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ struct Rectf
|
||||
{
|
||||
Rectf( );
|
||||
explicit Rectf( float left, float bottom, float width, float height );
|
||||
Rectf(Point2f pos, Point2f size);
|
||||
//explicit Rectf( int left, int bottom, int width, int height ); //Stupid fix for it giving an error (same as Point2f)
|
||||
|
||||
Point2f BottomLeft() const { return Point2f{ left, bottom }; }
|
||||
|
||||
632
Engine/utils.cpp
632
Engine/utils.cpp
File diff suppressed because it is too large
Load Diff
@@ -111,4 +111,6 @@ namespace utils
|
||||
bool isMouseDown(int button);
|
||||
bool isKeyUp(int keycode);
|
||||
|
||||
Point2f GetMousePos();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user