Text Rendering works

This commit is contained in:
Dynamitos
2022-04-15 23:45:44 +02:00
parent eb23264c40
commit 03e1a5784d
70 changed files with 1178 additions and 476 deletions
+6 -7
View File
@@ -1,11 +1,10 @@
#pragma once
#include "Graphics/GraphicsResources.h"
#include "View.h"
#include "ThreadPool.h"
namespace Seele
{
struct WindowView
/*struct WindowView
{
PView view;
Event updateFinished;
@@ -14,8 +13,8 @@ struct WindowView
: view(view)
, updateFinished(view->getName())
{}
};
DEFINE_REF(WindowView)
};*/
//DEFINE_REF(WindowView)
DECLARE_REF(WindowManager)
// The logical window, with the graphics proxy
class Window
@@ -24,16 +23,16 @@ public:
Window(PWindowManager owner, Gfx::PWindow handle);
~Window();
void addView(PView view);
MainJob render();
void render();
Gfx::PWindow getGfxHandle();
void setFocused(PView view);
protected:
PWindowManager owner;
Array<WindowView*> views;
Array<PView> views;
Gfx::PWindow gfxHandle;
Job viewWorker(size_t viewIndex);
//void viewWorker(size_t viewIndex);
};
DEFINE_REF(Window)
} // namespace Seele