This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-30 21:24:16 +08:00
|
|
|
#pragma once
|
2022-02-04 14:07:03 +08:00
|
|
|
|
2022-01-30 21:24:16 +08:00
|
|
|
#include "pch.hpp"
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
using Unique = std::unique_ptr<T>;
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
using Ref = std::shared_ptr<T>;
|
2022-02-04 14:07:03 +08:00
|
|
|
|
|
|
|
#ifdef GAME_DEBUG
|
|
|
|
#define FATAL_ERROR(msg) assert((void(msg), false))
|
|
|
|
#else
|
|
|
|
#define FATAL_ERROR(msg)
|
|
|
|
#endif
|
2022-02-05 20:52:01 +08:00
|
|
|
|
|
|
|
inline float GetTime() {
|
|
|
|
return glfwGetTime();
|
|
|
|
}
|