Moved stuff around + start of graphics device support (dx12)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user