POC for entities.

This commit is contained in:
2025-02-01 21:03:22 -05:00
parent 4c43cce133
commit fc5e09fab0
16 changed files with 254 additions and 32 deletions

View File

@@ -11,6 +11,7 @@
#include <cstdlib>
// TODO : Replace with message box from framework + call main and not winmain + subsystem
#include <Core/DynLib/DynamicLibrary.h>
#include <Graphics/Graphics.h>
#include <Windows.h>
@@ -33,12 +34,16 @@ void Win32EditorApplication::Init()
// TODO : Assign the graphics device to the main window (and detach)
Running = MainWindow != nullptr && GraphicsDevice != nullptr;
DynamicLibrary = LoadDynamicLibrary("Game.dll");
}
void Win32EditorApplication::Shutdown()
{
Log(LogLevel::Message, LogCategory::Editor, "Shutdown Editor Application...");
UnloadDynamicLibrary(DynamicLibrary);
if (MainWindow)
{
DestroyPlatformWindow(MainWindow);
@@ -65,9 +70,7 @@ void Win32EditorApplication::Update()
}
// Draw here for now
// 1) Acquire a Command Buffer
// 1) Acquire a Command Buffer
}
bool Win32EditorApplication::IsRunning()

View File

@@ -1,6 +1,7 @@
#pragma once
#include <Core/Application/IApplication.h>
#include <Core/DynLib/DynamicLibrary.h>
#include <Core/HAL/Display/Display.h>
namespace Juliet
@@ -20,6 +21,7 @@ class Win32EditorApplication : public Juliet::IApplication
private:
Juliet::Window* MainWindow = {};
Juliet::GraphicsDevice* GraphicsDevice = {};
Juliet::DynamicLibrary* DynamicLibrary = {};
bool Running = false;
};