Add transformation

Add input
Add time
Add vertex colors
This commit is contained in:
2026-11-16 12:10:00 +01:00
parent 17b18859b3
commit b84f9c1052
7 changed files with 102 additions and 10 deletions
+14
View File
@@ -1,12 +1,26 @@
#include "Time.h"
#include <string>
UINT Time::init()
{
_lastFrame = CLOCK::now();
return 0;
}
void Time::update()
{
TIMEPOINT now = CLOCK::now();
SECONDS diff = now - _lastFrame;
_deltaTime = diff.count();
_lastFrame = now;
#if _DEBUG && UNICODE
wstring output = L"fps: " + to_wstring(1.0f / _deltaTime) + L"\n";
OutputDebugString(output.c_str());
#endif // _DEBUG && UNICODE
}
void Time::deInit()