actually sensible classes
This commit is contained in:
parent
9bbefbc021
commit
c3b8761102
13 changed files with 128 additions and 152 deletions
|
|
@ -50,6 +50,7 @@ export namespace Crafter {
|
|||
std::uint_fast32_t width;
|
||||
std::uint_fast32_t height;
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> lastFrameBegin;
|
||||
std::vector<Transform*> elements;
|
||||
Event<void> onClose;
|
||||
Event<FrameTime> onUpdate;
|
||||
bool open = true;
|
||||
|
|
@ -126,7 +127,6 @@ export namespace Crafter {
|
|||
class WindowWayland final : public WindowKeyboard, public WindowMouse, public WindowFramebuffer, public WindowTitle {
|
||||
public:
|
||||
Pixel_BU8_GU8_RU8_AU8* framebuffer = nullptr;
|
||||
std::vector<RenderingElement*> elements;
|
||||
WindowWayland(std::uint_fast32_t width, std::uint_fast32_t height);
|
||||
WindowWayland(std::uint_fast32_t width, std::uint_fast32_t height, const std::string_view title);
|
||||
~WindowWayland();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue