typedef & PascalCase for ALL structs and enums

This commit is contained in:
2024-09-23 14:43:16 -03:00
parent e093a6d492
commit 73bf92e706
43 changed files with 795 additions and 793 deletions

View File

@ -8,12 +8,12 @@
#define CAMERA_FAR_Z 100.0f
t_matrix4 camera_look_at(const t_camera *const camera) {
Matrix4 camera_look_at(const Camera *const camera) {
/* from cglm */
const t_fvec3 r = m_vec_norm(m_vec_cross(camera->target, camera->up));
const t_fvec3 u = m_vec_cross(r, camera->target);
const Vec3 r = m_vec_norm(m_vec_cross(camera->target, camera->up));
const Vec3 u = m_vec_cross(r, camera->target);
t_matrix4 result;
Matrix4 result;
result.row[0].x = r.x;
result.row[0].y = u.x;
@ -33,9 +33,9 @@ t_matrix4 camera_look_at(const t_camera *const camera) {
return result;
}
t_matrix4 camera_perspective(const t_camera *const camera) {
Matrix4 camera_perspective(const Camera *const camera) {
/* from cglm */
t_matrix4 result = {0};
Matrix4 result = {0};
const float aspect = RENDER_BASE_RATIO;