minor changes and added namespace to avoid conflicts when integrating with PanoPainter
This commit is contained in:
@@ -427,6 +427,7 @@ int main()
|
||||
float dt = (float)(t1 - t0) / 1000.0f;
|
||||
if (dt > 1.0f / 60.0f)
|
||||
{
|
||||
App::I.clear();
|
||||
App::I.update((float)(t1 - t0) / 1000.0f);
|
||||
t0 = t1;
|
||||
SwapBuffers(hDC);
|
||||
@@ -452,6 +453,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
|
||||
break;
|
||||
case WM_SIZE:
|
||||
App::I.resize((float)LOWORD(lp), (float)HIWORD(lp));
|
||||
App::I.clear();
|
||||
App::I.update(0.f);
|
||||
SwapBuffers(hDC);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user