Implement zoom.

This commit is contained in:
2026-03-16 21:17:23 +01:00
parent 3d9c211737
commit bb47dcc9f9
4 changed files with 55 additions and 1 deletions

View File

@@ -39,6 +39,16 @@
# define WINDOW_HEIGHT 600
#endif
#ifndef ZOOM_MIN
# define ZOOM_MIN 0.25f
#endif
#ifndef ZOOM_MAX
# define ZOOM_MAX 4.0f
#endif
#ifndef ZOOM_STEP
# define ZOOM_STEP 0.1f
#endif
#include <math.h>
#ifndef M_PI
# define M_PI 3.14159265f