summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorVasco <[email protected]>2026-08-24 17:47:30 +0100
committerVasco <[email protected]>2026-08-24 17:50:52 +0100
commitcc3429220b19df8c5ca6abf28a02cd38d08de32d (patch)
treedd6fe3911535cc75570e5fe34ff84c758028aa81 /demos
parentad5248a3e1bafc1b7dec4c8af82d56ed324ef314 (diff)
Cool 0.0.0. Rend 1.0.4.
Diffstat (limited to 'demos')
-rw-r--r--demos/compute/rend_compute.c (renamed from demos/rend_compute.c)15
-rw-r--r--demos/compute/rend_compute.slang (renamed from demos/rend_compute.slang)0
-rwxr-xr-xdemos/compute/rend_compute_demobin446416 -> 434248 bytes
-rwxr-xr-xdemos/compute/rend_compute_fastbin474256 -> 0 bytes
-rwxr-xr-xdemos/multiplatform/demo (renamed from demos/demo)bin60352 -> 60392 bytes
-rw-r--r--demos/multiplatform/demo.c (renamed from demos/demo.c)2
-rw-r--r--demos/multiplatform/demo.html (renamed from demos/demo.html)0
-rw-r--r--demos/multiplatform/demo.js (renamed from demos/demo.js)0
-rwxr-xr-xdemos/multiplatform/demo.wasm (renamed from demos/demo.wasm)bin31763 -> 31779 bytes
-rwxr-xr-xdemos/multiplatform/demo_run (renamed from demos/demo_run)bin60592 -> 60640 bytes
-rw-r--r--demos/multiplatform/demo_run.c (renamed from demos/demo_run.c)2
-rwxr-xr-xdemos/teapot/rend_teapotbin849944 -> 845880 bytes
-rw-r--r--demos/teapot/rend_teapot.c (renamed from demos/rend_teapot.c)0
-rw-r--r--demos/teapot/teapot.h (renamed from demos/teapot.h)0
14 files changed, 7 insertions, 12 deletions
diff --git a/demos/rend_compute.c b/demos/compute/rend_compute.c
index f82836a..37ee207 100644
--- a/demos/rend_compute.c
+++ b/demos/compute/rend_compute.c
@@ -1,15 +1,12 @@
+#define PEAK_IMPLEMENTATION
+#include "../Rend/rend.h"
+#include "../Rend/rend.c"
+#include <stddef.h>
#include <string.h>
-#ifdef DEBUG_MEMORY
#define malloc(size) peak_debug_malloc_impl((size), __FILE__, __LINE__, __func__)
#define realloc(ptr, size) peak_debug_realloc_impl((ptr), (size), __FILE__, __LINE__, __func__)
#define free(ptr) peak_debug_free_impl((ptr), __FILE__, __LINE__, __func__)
-#endif
-
-#define PEAK_IMPLEMENTATION
-#include "../Rend/rend.h"
-#include "../Rend/rend.c"
-#include <stddef.h>
float delta = 0;
PeakWindow win;
@@ -219,13 +216,11 @@ int main() {
rend_buffer_destroy(&dst_buf);
rend_renderer_destroy(renderer);
- rend_quit();
+ // rend_quit();
peak_window_close(&win);
peak_quit();
-#if DEBUG_MEMORY
peak_debug_memory_report();
-#endif
return 0;
}
diff --git a/demos/rend_compute.slang b/demos/compute/rend_compute.slang
index 5fb124b..5fb124b 100644
--- a/demos/rend_compute.slang
+++ b/demos/compute/rend_compute.slang
diff --git a/demos/compute/rend_compute_demo b/demos/compute/rend_compute_demo
index 1aecc00..46734c6 100755
--- a/demos/compute/rend_compute_demo
+++ b/demos/compute/rend_compute_demo
Binary files differ
diff --git a/demos/compute/rend_compute_fast b/demos/compute/rend_compute_fast
deleted file mode 100755
index d9583f6..0000000
--- a/demos/compute/rend_compute_fast
+++ /dev/null
Binary files differ
diff --git a/demos/demo b/demos/multiplatform/demo
index 9f9b6ee..5086695 100755
--- a/demos/demo
+++ b/demos/multiplatform/demo
Binary files differ
diff --git a/demos/demo.c b/demos/multiplatform/demo.c
index c095fdb..4e8295f 100644
--- a/demos/demo.c
+++ b/demos/multiplatform/demo.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#define PEAK_IMPLEMENTATION
-#include "../Peak/peak.h"
+#include "../../Peak/peak.h"
void print_window_resize(PeakEvent ev) {
printf("window: %u %u\n", ev.resize.width, ev.resize.height);
diff --git a/demos/demo.html b/demos/multiplatform/demo.html
index a10e85e..a10e85e 100644
--- a/demos/demo.html
+++ b/demos/multiplatform/demo.html
diff --git a/demos/demo.js b/demos/multiplatform/demo.js
index 1de6b03..1de6b03 100644
--- a/demos/demo.js
+++ b/demos/multiplatform/demo.js
diff --git a/demos/demo.wasm b/demos/multiplatform/demo.wasm
index 6dbbbd6..4da868a 100755
--- a/demos/demo.wasm
+++ b/demos/multiplatform/demo.wasm
Binary files differ
diff --git a/demos/demo_run b/demos/multiplatform/demo_run
index 45a51e9..f9b8721 100755
--- a/demos/demo_run
+++ b/demos/multiplatform/demo_run
Binary files differ
diff --git a/demos/demo_run.c b/demos/multiplatform/demo_run.c
index db3e56a..2b7d681 100644
--- a/demos/demo_run.c
+++ b/demos/multiplatform/demo_run.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#define PEAK_IMPLEMENTATION
-#include "../Peak/peak.h"
+#include "../../Peak/peak.h"
void print_window_resize(PeakEvent ev) {
diff --git a/demos/teapot/rend_teapot b/demos/teapot/rend_teapot
index c1d3a30..f9a4bb9 100755
--- a/demos/teapot/rend_teapot
+++ b/demos/teapot/rend_teapot
Binary files differ
diff --git a/demos/rend_teapot.c b/demos/teapot/rend_teapot.c
index b4430e9..b4430e9 100644
--- a/demos/rend_teapot.c
+++ b/demos/teapot/rend_teapot.c
diff --git a/demos/teapot.h b/demos/teapot/teapot.h
index dfde9be..dfde9be 100644
--- a/demos/teapot.h
+++ b/demos/teapot/teapot.h