This commit is contained in:
Asuro
2025-02-07 00:32:38 +01:00
parent 445844bb6d
commit 3be734ae2f
16 changed files with 193 additions and 32 deletions

25
src/game/Setup.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include "Setup.h"
#include "Log.h"
#include <bgfx/bgfx.h>
namespace Game
{
void Setup(void* window)
{
Log("Setup");
bgfx::Init init;
init.type = bgfx::RendererType::Direct3D12;
init.platformData.nwh = (void*)window;
init.platformData.ndt = nullptr;
init.platformData.type = bgfx::NativeWindowHandleType::Default;
init.resolution.width = 1920;
init.resolution.height = 1080;
init.resolution.reset = BGFX_RESET_VSYNC;
bgfx::init(init);
}
void Update()
{
Log("Update");
}
}