summaryrefslogtreecommitdiff
path: root/assets.h
diff options
context:
space:
mode:
Diffstat (limited to 'assets.h')
-rw-r--r--assets.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets.h b/assets.h
index 419795b..d5de588 100644
--- a/assets.h
+++ b/assets.h
@@ -45,12 +45,16 @@ enum Asset {
ASSET_LEN
};
+#ifdef ASSET_IMPLEMENTATION
Model assets[ASSET_LEN];
#define AS_ARRAY(name) assets[name] = LoadModel(ASSET_PATH #name ".obj");
void LoadModels() {
ASSETS(AS_ARRAY)
}
+#else
+extern Model assets[];
+#endif
#endif /* ASSETS_H */