basic movement
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
#include <utils.hpp>
|
||||
|
||||
namespace Game::Renderer {
|
||||
typedef struct {
|
||||
float camX;
|
||||
float camY;
|
||||
int screenW;
|
||||
int screenH;
|
||||
} RendererConfig;
|
||||
|
||||
class Renderer {
|
||||
public:
|
||||
Renderer();
|
||||
|
||||
@@ -19,9 +19,13 @@ namespace Game::Renderer {
|
||||
std::string getId();
|
||||
float getWidth();
|
||||
float getHeight();
|
||||
bool isTiled() { return mIsTiled; }
|
||||
void setTiled(bool tiled) { mIsTiled = tiled; }
|
||||
|
||||
protected:
|
||||
SDL_Texture* mTex;
|
||||
std::string mId;
|
||||
private:
|
||||
bool mIsTiled = false; // Whether the texture is a tileset that should be rendered as a single tile or not
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user