Refactor & More.
Changed the entity system to utilize mix-ins. Added instanced sprites. Texture support.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
};
|
Reference in New Issue
Block a user