Basic graphics structure
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user