Moved stuff around + start of graphics device support (dx12)

This commit is contained in:
2025-01-09 22:35:33 -05:00
parent 5b4b6f2c52
commit 915858c0d3
56 changed files with 207 additions and 93 deletions

View File

@@ -11,6 +11,7 @@
#include <cstdlib>
// TODO : Replace with message box from framework + call main and not winmain + subsystem
#include <Graphics/Graphics.h>
#include <Windows.h>
namespace Juliet
@@ -21,8 +22,9 @@ namespace Juliet
MainWindow = CreatePlatformWindow("Juliet Editor", 1280, 720);
GraphicsConfig config;
// InitializeGraphics(config);
GraphicsConfig config;
GraphicsDevice* device = CreateGraphicsDevice(config);
Assert(!device && "Currently not implemented so device should be null");
Running = MainWindow != nullptr;
}
@@ -31,7 +33,7 @@ namespace Juliet
{
Log(LogLevel::Message, LogCategory::Editor, "Shutdown Editor Application...");
if (MainWindow )
if (MainWindow)
{
DestroyPlatformWindow(MainWindow);
}