summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 21:12:15 +0530
committerveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 21:12:15 +0530
commita7d048ca4753c831c482e116f03e0711f86e1a18 (patch)
tree2ba6465a314ad7d2c58039450daf4f6c830f8bc9 /main.h
parent3dadad50c681b7a6481b5ae2ce0763d66d3257ea (diff)
Macros for Writing with a font; Changed the title officially to Leet
Diffstat (limited to 'main.h')
-rw-r--r--main.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.h b/main.h
index 7813dfd..5956f49 100644
--- a/main.h
+++ b/main.h
@@ -1,6 +1,10 @@
#include <string.h>
-#define WriteDrawText(text, posX, posY, fontSize, color) DrawText(text, posX - (MeasureText(text, fontSize)/2), posY, fontSize, color);
+#define WriteDrawText(text, posX, posY, fontSize, color) \
+ DrawText(text, posX - (MeasureText(text, fontSize) / 2), posY, fontSize, \
+ color);
+
+#define WriteDrawTextFont(font, text, posX, posY, fontSize, spacing, color) Vector2 foo = {(posX - MeasureTextEx(font, text, fontSize, spacing).x/2), posY}; DrawTextEx(font, text, foo, fontSize, spacing, color);
#define DrawRect(posX,posY,width,height,color) DrawRectangle(posX - width/2, posY, width, height, color);
@@ -20,3 +24,5 @@ typedef enum ScreenType {
void MainMenu();
void SettingsMenu();
void LoadConfiguration();
+
+