Graphics Example Stable
This commit is contained in:
parent
e331fc1a34
commit
84046e89be
10 changed files with 28 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ namespace tp {
|
|||
};
|
||||
|
||||
class Graphics {
|
||||
private:
|
||||
public:
|
||||
explicit Graphics(Window* window) : mGui(window), mCanvas(window) {}
|
||||
|
||||
void proc() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Environment.hpp"
|
||||
|
||||
namespace tp {
|
||||
enum class InputID : ualni {
|
||||
/* Printable keys */
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue