summary refs log tree commit diff
path: root/src/Assets.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-12 12:55:11 +0100
committerMel <einebeere@gmail.com>2024-02-12 12:55:11 +0100
commitd2b5fc5b3bc648afffa42375706429685ac63794 (patch)
treea2dfbb241e1d46e5616c5884e5f3d685de2a2cb6 /src/Assets.hpp
parent588c7e87b7cab270698d43ca5c22d67793ae5fc4 (diff)
downloadmeowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.tar.zst
meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.zip
Split rendering into own thread and sync through render action lists
Diffstat (limited to 'src/Assets.hpp')
-rw-r--r--src/Assets.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Assets.hpp b/src/Assets.hpp
index 9ff5c42..f4b2f46 100644
--- a/src/Assets.hpp
+++ b/src/Assets.hpp
@@ -6,14 +6,18 @@ namespace MC::Assets {
 
 namespace Shaders {
 
-extern const Char* vertex;
-extern const Char* fragment;
+#define MC_ASSETS_SHADER(name) namespace name { extern Char const* vertex; extern Char const* fragment; }
+
+MC_ASSETS_SHADER(terrain)
+MC_ASSETS_SHADER(clouds)
+MC_ASSETS_SHADER(block_outline)
+MC_ASSETS_SHADER(image_viewer)
 
 }
 
 namespace Images {
 
-extern const Char* atlas;
+extern Char const* atlas;
 
 }