Reviving old code.

This commit is contained in:
Martin Felis 2025-11-11 09:03:24 +01:00
parent 382730960f
commit 791bf36b90
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.3) cmake_minimum_required (VERSION 3.20)
# Defines the project's name # Defines the project's name
project(ozz) project(ozz)

View File

@ -49,7 +49,7 @@ class StdAllocator {
StdAllocator(const StdAllocator&) noexcept {} StdAllocator(const StdAllocator&) noexcept {}
template <class _Other> template <class _Other>
StdAllocator<value_type>(const StdAllocator<_Other>&) noexcept {} StdAllocator(const StdAllocator<_Other>&) noexcept {}
template <class _Other> template <class _Other>
struct rebind { struct rebind {

View File

@ -42,8 +42,8 @@ inline void Camera_Init(Camera* camera) {
camera->pitch = 10 * M_PI / 180.0f; camera->pitch = 10 * M_PI / 180.0f;
memcpy(&camera->mtxView, &mtx_identity, sizeof(camera->mtxView)); memcpy(&camera->mtxView, &mtx_identity, sizeof(camera->mtxView));
Camera_CalcToMatrix(camera, &camera->mtxView); Camera_CalcToMatrix(camera, &camera->mtxView[0]);
Camera_CalcFromMatrix(camera, &camera->mtxView); Camera_CalcFromMatrix(camera, &camera->mtxView[0]);
} }
void Camera_CalcFromMatrix(Camera* camera, float* mat) { void Camera_CalcFromMatrix(Camera* camera, float* mat) {
@ -153,6 +153,6 @@ inline void Camera_Update(
camera->vel[i] = camera->vel[i] * 0.1; camera->vel[i] = camera->vel[i] * 0.1;
} }
Camera_CalcToMatrix(camera, &camera->mtxView); Camera_CalcToMatrix(camera, &camera->mtxView[0]);
} }
} }