Enhances audio effects.Adds TitleScene.

This commit is contained in:
2021-08-27 16:42:58 +09:00
parent ea6fbd572e
commit 55b64ffa45
23 changed files with 1573 additions and 53 deletions

View File

@@ -17,6 +17,8 @@ namespace gj {
using mat3 = ::linalg::mat<double, 3, 3>;
using vec3 = ::linalg::vec<double, 3>;
constexpr double kPi = 3.14159265358979323846264338327950288;
static inline std::wstring ConvertStrToWstr(const std::string& str) {
std::wstring ret;
@@ -38,6 +40,12 @@ static inline size_t CountWstrBytes(const std::wstring& str) {
return n;
}
static inline uint64_t XorShift(uint64_t x) {
x = x ^ (x << 13);
x = x ^ (x >> 7);
return x ^ (x << 17);
}
[[noreturn]]
static inline void Abort(const std::string& msg) {