2023-05-26 21:41:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../math/types.hpp"
|
|
|
|
#include "../resources/resource.hpp"
|
2023-05-30 16:00:39 +00:00
|
|
|
#include "../resources/texture.hpp"
|
2023-05-26 21:41:51 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace hibis {
|
|
|
|
class Renderer {
|
|
|
|
public:
|
|
|
|
// Draw
|
|
|
|
virtual void clearScreen(Color col) = 0;
|
|
|
|
virtual void renderCurrent() = 0;
|
|
|
|
|
|
|
|
virtual void drawText(Resource* resource, std::string text, IntVec2 pos, Color color) = 0;
|
2023-05-30 16:00:39 +00:00
|
|
|
virtual void drawTexture(Texture* resource, float scale, IntVec2 pos) = 0;
|
2023-05-26 21:41:51 +00:00
|
|
|
|
|
|
|
// Pre and Post draw
|
|
|
|
virtual void preDraw() = 0;
|
|
|
|
virtual void postDraw() = 0;
|
|
|
|
|
|
|
|
// Update
|
|
|
|
virtual void update() = 0;
|
|
|
|
|
|
|
|
// Util
|
|
|
|
virtual void setWindowTitle(std::string title) = 0;
|
|
|
|
|
2023-05-27 19:47:34 +00:00
|
|
|
bool mKeepOpen = true;
|
2023-05-26 21:41:51 +00:00
|
|
|
};
|
|
|
|
}
|