push as is, half baked broken twn_models.c

This commit is contained in:
veclavtalica
2025-02-14 19:51:34 +03:00
parent 0df0a9226f
commit f81c583319
10 changed files with 460 additions and 49 deletions

View File

@ -415,7 +415,9 @@ static void render_space(void) {
void render(void) {
models_update_pre_textures();
textures_update_atlas(&ctx.texture_cache);
models_update_post_textures();
/* fit rendering context onto the resizable screen */
if (ctx.window_size_has_changed) {
@ -471,7 +473,6 @@ void draw_camera(Vec3 position, Vec3 direction, Vec3 up, float fov, float zoom)
/* TODO: https://stackoverflow.com/questions/62493770/how-to-add-roll-in-camera-class */
/* TODO: check for NaNs and alike */
/* TODOL call draw_camera() instead, to reuse the code */
DrawCameraFromPrincipalAxesResult draw_camera_from_principal_axes(Vec3 position,
float roll,