aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'headers/TZR_resource.h')
-rw-r--r--headers/TZR_resource.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/headers/TZR_resource.h b/headers/TZR_resource.h
index d9a68c4..06f0763 100644
--- a/headers/TZR_resource.h
+++ b/headers/TZR_resource.h
@@ -2,10 +2,13 @@
#include "TZR_types.h"
/* Return 0 on error. */
+[[nodiscard]]
TZR_Uint TZR_LoadResourceFromMemory(TZR_ResourceType type, const void *data, int size);
+[[nodiscard]]
TZR_Uint TZR_LoadResourceTyped(TZR_ResourceType type, const char *path);
/* Return 0 on error; try to autodetect resource type from file extension. */
+[[nodiscard]]
TZR_Uint TZR_LoadResource(const char *path);
/* Doesn't handle invalid ID. Pointer might get invalidated by resource
@@ -35,5 +38,6 @@ int TZR_ReloadResource(TZR_Uint id);
void TZR_ResourcesWatch(void);
/* Used internaly. */
+[[nodiscard]]
int TZR_DirectResourceLoad(TZR_Resource *res, const void *data, int size);
void TZR_DestroyResource(TZR_Resource *res, int free_path);