setup
This commit is contained in:
25
src/game/Setup.cpp
Normal file
25
src/game/Setup.cpp
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user