aboutsummaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-09-21 23:12:28 +0300
committerbonmas14 <bonmas14@gmail.com>2025-09-21 23:12:28 +0300
commite9ecc6b4df41ced1b9dd39ad638435945d1a6374 (patch)
tree10b96db62df38aa269d1cc47d7f5be2d1d4513da /src/entry.c
parentb30d161ea14254173912fbb2afd296168f2561d8 (diff)
downloadc_wizard-e9ecc6b4df41ced1b9dd39ad638435945d1a6374.tar.gz
c_wizard-e9ecc6b4df41ced1b9dd39ad638435945d1a6374.zip
v1.2 ui for settings changingHEADmain
Diffstat (limited to 'src/entry.c')
-rw-r--r--src/entry.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/entry.c b/src/entry.c
index f8b43d2..017ef56 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -1,3 +1,10 @@
+#include "raylib.h"
+
+#define RAYMATH_IMPLEMENTATION
+#include "raymath.h"
+
+#define RAYGUI_IMPLEMENTATION
+#include "raygui.h"
#include <math.h>
#include <stddef.h>
@@ -5,6 +12,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <float.h>
+#include <string.h>
/// -------------
@@ -59,16 +67,12 @@ typedef uint32_t b32;
#endif
#ifndef ERRLOG
-#include <stdio.h>
-#define ERRLOG(...) fprintf(stderr, __VA_ARGS__)
+#define ERRLOG(...) TraceLog(LOG_ERROR, __VA_ARGS__)
#endif
#ifndef INFLOG
-#include <stdio.h>
-#define INFLOG(...) fprintf(stderr, __VA_ARGS__)
+#define INFLOG(...) TraceLog(LOG_INFO, __VA_ARGS__)
#endif
-#include <string.h>
-
#if DEBUG
# define assert(result) { \
if ((result) == 0) { \
@@ -84,16 +88,10 @@ typedef uint32_t b32;
#define MEMCPY(dest, source, size) memcpy(dest, source, size)
#define MEMCMP(a, b, size) memcmp(a, b, size)
-#include "raylib.h"
-
#define TAU (2.0 * PI)
-#define RAYMATH_IMPLEMENTATION
-#include "raymath.h"
-
-
-#define WINDOW_WIDTH 640
-#define WINDOW_HEIGHT 480
+#define WINDOW_WIDTH 900
+#define WINDOW_HEIGHT 700
f32 window_width = WINDOW_WIDTH;
f32 window_height = WINDOW_HEIGHT;