Graphics Example Stable

This commit is contained in:
IlyaShurupov 2024-03-19 11:37:55 +03:00
parent bb5cbfdfe2
commit b342f4fd8c
10 changed files with 28 additions and 12 deletions

View file

@ -56,7 +56,7 @@ namespace tp {
// Event posters has no access to any custom state and only report any changes in any way
class EventHandler {
public:
EventHandler() = default;
EventHandler();
~EventHandler();
public: // Event Poster Interface

View file

@ -63,7 +63,7 @@ namespace tp {
};
class Graphics {
private:
public:
explicit Graphics(Window* window) : mGui(window), mCanvas(window) {}
void proc() {

View file

@ -1,6 +1,8 @@
#pragma once
#include "Environment.hpp"
namespace tp {
enum class InputID : ualni {
/* Printable keys */

View file

@ -2,7 +2,6 @@
#include "Buffer.hpp"
#include "EventHandler.hpp"
#include "Strings.hpp"
namespace tp {
@ -12,11 +11,11 @@ namespace tp {
class Context;
private:
Window(Vec2F size, const String& title);
Window(Vec2F size, const char* title);
~Window();
public:
static Window* createWindow(Vec2F size = { 1000.f, 900.f }, const String& title = "Window");
static Window* createWindow(Vec2F size = { 1000.f, 900.f }, const char* title = "Window");
static void destroyWindow(Window* window);
public: