rexim 4 years ago
parent
commit
f1261b5076
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main.c

+ 5 - 0
main.c

@@ -15,6 +15,11 @@
 #define SCREEN_WIDTH 1024
 #define SCREEN_HEIGHT 768
 
+float lerp(float a, float b, float t)
+{
+    return a + (b - a) * t;
+}
+
 char *slurp_file(const char *file_path)
 {
 #define SLURP_FILE_PANIC \