Refactor & More.

Changed the entity system to utilize mix-ins.

Added instanced sprites.

Texture support.
This commit is contained in:
2025-01-03 19:28:58 -05:00
parent c9daae8d25
commit 6664925621
39 changed files with 503 additions and 310 deletions

View File

@@ -1,5 +1,6 @@
#include <rewindow/types/window.h>
#pragma once
#include <rewindow/types/window.h>
#include <rewindow/logger/logger.h>
namespace Engine {
class DemoGameWindow;
@@ -11,7 +12,16 @@ public:
public:
void OnRefresh(float elapsed) override;
public:
DemoGameWindow() : ReWindow::RWindow() {}
DemoGameWindow(const std::string& title, int width, int height) : ReWindow::RWindow(title, width, height) {}
DemoGameWindow(const std::string& title, int width, int height) : ReWindow::RWindow(title, width, height)
{
ReWindow::Logger::Error.EnableConsole(false);
ReWindow::Logger::Warning.EnableConsole(false);
ReWindow::Logger::Debug.EnableConsole(false);
SetRenderer(RenderingAPI::OPENGL);
Open();
InitGL();
SetResizable(false);
SetVsyncEnabled(false);
}
};