Basic graphics structure

This commit is contained in:
HOEGLER Stefan
2020-03-02 19:07:49 +01:00
parent a14237d6ce
commit 4c2535931e
16 changed files with 137 additions and 48 deletions
+18 -19
View File
@@ -1,33 +1,30 @@
#pragma once
#include "MinimalEngine.h"
namespace Seele {
struct WindowCreateInfo
// A window is divided into 5 sections, using a border layout
// +--------------TOP------------------+
// | |
// L R
// E I
// F CENTER G
// T H
// | T
// +-------------BOTTOM----------------+
// In every section, there can be any number
// of views, when there are multiple, they stack to tabs
struct Section
{
int32 width;
int32 height;
const char* title;
};
DECLARE_REF(Section)
class Window
{
public:
Window(const WindowCreateInfo& createInfo);
~Window();
private:
// A window is divided into 5 sections, using a border layout
// +--------------TOP------------------+
// | |
// L R
// E I
// F CENTER G
// T H
// | T
// +-------------BOTTOM----------------+
// In every section, there can be any number
// of views, when there are multiple, they stack to tabs
struct Section
{
};
void* windowHandle;
Section top;
Section bot;
Section left;
@@ -35,5 +32,7 @@ namespace Seele {
Section center;
uint32 width;
uint32 height;
Graphics* graphics;
};
DECLARE_REF(Window)
}