aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kdx@42l.fr>2023-02-22 05:56:11 +0100
committerkdx <kdx@42l.fr>2023-02-22 05:56:11 +0100
commitbf25d9e8c8f0eb5a38c273a8445d0c43e3a8c5b8 (patch)
treec8e7feabe0788a3f53085147e425a27755e5256b /main.c
parente495b5f2a81ffae702978df91930df7fe36ad35d (diff)
downloadtzr-bf25d9e8c8f0eb5a38c273a8445d0c43e3a8c5b8.tar.gz
preemptive embed demo
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8026ead..44d302e 100644
--- a/main.c
+++ b/main.c
@@ -17,6 +17,13 @@ int main(int argc, char **argv)
if (id0 != 1 || id1 != 2 || id2 != 3)
return TZR_Quit(), 1;
+ /* Asset loading w/ #embed (C23 proposal). */
+ /* static const char res_bmp[] =
+ * #embed "res.bmp"
+ * ;
+ * const TZR_Uint id0 = TZR_LoadResourceFromMemory(TZR_RES_IMAGE,
+ * res_bmp, sizeof(res_bmp)); */
+
/* Print assets paths. */
printf("%s %s\n", TZR_GetResourcePath(id0), TZR_GetResourcePath(id1));