Graphics Animations & Renaming
This commit is contained in:
parent
3a68e70f03
commit
5f186164a0
15 changed files with 718 additions and 318 deletions
39
Graphics/public/Window.hpp
Normal file
39
Graphics/public/Window.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue