From da40b1083161b1a53e2764ffac3a3a1f8568e24c Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 11 Jul 2023 00:11:06 +0100 Subject: use struct to store multiple uniforms --- src/tiled.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/tiled.h (limited to 'src/tiled.h') 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 + +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; -- cgit v1.2.1