summaryrefslogtreecommitdiff
path: root/src/tiled.h
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-11 00:11:06 +0100
committerdavidovski <david@davidovski.xyz>2023-07-11 00:11:06 +0100
commitda40b1083161b1a53e2764ffac3a3a1f8568e24c (patch)
treeb2ccb9e23031d376a5741f80f85eb286ef7376b8 /src/tiled.h
parenta65880a11878a9b8e08174b7c897894b2a81a226 (diff)
use struct to store multiple uniforms
Diffstat (limited to 'src/tiled.h')
-rw-r--r--src/tiled.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tiled.h b/src/tiled.h
new file mode 100644
index 0000000..5791dc0
--- /dev/null
+++ b/src/tiled.h
@@ -0,0 +1,23 @@
+#include <raylib.h>
+
+typedef struct TiledUniforms {
+ float zoom;
+ Vector2 offset;
+
+ int atlasSize[2];
+ int mapSize[2];
+
+ Texture2D atlasTexture;
+ Texture2D tilemapTexture;
+
+
+ int zoomLoc;
+ int offsetLoc;
+
+ int atlasSizeLoc;
+ int mapSizeLoc;
+
+ int atlasTextureLoc;
+ int tilemapTextureLoc;
+
+} TiledUniforms;