hotloading!!
This commit is contained in:
@@ -4,22 +4,19 @@
|
||||
|
||||
namespace Game
|
||||
{
|
||||
int32_t FrameCounter = 0;
|
||||
|
||||
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);
|
||||
Log("Game Setup Start!");
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
Log("Update");
|
||||
}
|
||||
++FrameCounter;
|
||||
if (FrameCounter % 1000000 == 0)
|
||||
{
|
||||
Log("Frame!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user