add D3D11 project
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <Windows.h>
|
||||
#include <chrono>
|
||||
|
||||
using namespace std;
|
||||
|
||||
typedef chrono::steady_clock CLOCK;
|
||||
typedef CLOCK::time_point TIME_POINT;
|
||||
typedef chrono::duration<FLOAT> SECONDS;
|
||||
|
||||
class Time
|
||||
{
|
||||
public:
|
||||
UINT init();
|
||||
void update();
|
||||
void deInit();
|
||||
|
||||
FLOAT getDeltaTime() const { return _deltaTime; }
|
||||
|
||||
private:
|
||||
FLOAT _deltaTime = 0.0f;
|
||||
TIME_POINT _lastTime = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user