Graphics Animations & Renaming

This commit is contained in:
IlushaShurupov 2023-07-23 22:11:14 +03:00
parent 3a68e70f03
commit 5f186164a0
15 changed files with 718 additions and 318 deletions

View file

@ -0,0 +1,39 @@
#pragma once
#include "Graphics.hpp"
#include "Buffer.hpp"
#include "Keycodes.hpp"
namespace tp {
class Window {
class Context;
public:
struct Event {
enum Type {
KEY,
MOUSE,
};
};
private:
Window(int width, int height, const char* title);
~Window();
public:
static Window* createWindow(int width, int height, const char* title);
static void destroyWindow(Window* window);
public:
void renderLoop();
auto getContext() -> Context*;
private:
Context* mContext;
Graphics mGraphics;
Buffer<Event> mEvents;
};
}