aboutsummaryrefslogtreecommitdiff
path: root/headers
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-07 19:31:37 +0200
committerkdx <kikoodx@paranoici.org>2023-04-07 19:31:37 +0200
commit7e49aa72e1fe448cd125b605f25f4b61911ae2bd (patch)
tree54ffef7fc877a5dc2f1818d426032f357f20f584 /headers
parentd3186f3ec74df8b1e9bd9a8d2d0a5e10dde34568 (diff)
downloadtzr-7e49aa72e1fe448cd125b605f25f4b61911ae2bd.tar.gz
light render buffer
Diffstat (limited to 'headers')
-rw-r--r--headers/TZR.h1
-rw-r--r--headers/TZR_globals.h1
-rw-r--r--headers/TZR_light.h7
-rw-r--r--headers/TZR_types.h1
4 files changed, 10 insertions, 0 deletions
diff --git a/headers/TZR.h b/headers/TZR.h
index ebb6d0a..0bf0e01 100644
--- a/headers/TZR.h
+++ b/headers/TZR.h
@@ -18,6 +18,7 @@
.show_cursor=false, \
.mixer=true, \
.png_loading=true, \
+ .light_system=false, \
.title="TZR", \
._=0, __VA_ARGS__ })
diff --git a/headers/TZR_globals.h b/headers/TZR_globals.h
index a6eaac7..25919ad 100644
--- a/headers/TZR_globals.h
+++ b/headers/TZR_globals.h
@@ -11,6 +11,7 @@ extern size_t ___tzr_resources_size;
extern SDL_Window *___tzr_window;
extern SDL_Renderer *___tzr_renderer;
extern SDL_Texture *___tzr_target;
+extern SDL_Texture *___tzr_target_light;
extern unsigned long ___tzr_tick;
extern unsigned long ___tzr_next_time;
extern unsigned long ___tzr_min_dt;
diff --git a/headers/TZR_light.h b/headers/TZR_light.h
new file mode 100644
index 0000000..d4d26de
--- /dev/null
+++ b/headers/TZR_light.h
@@ -0,0 +1,7 @@
+#pragma once
+
+[[nodiscard]]
+int TZR_LightBegin(void);
+
+[[nodiscard]]
+int TZR_LightEnd(void);
diff --git a/headers/TZR_types.h b/headers/TZR_types.h
index f3535e8..81be046 100644
--- a/headers/TZR_types.h
+++ b/headers/TZR_types.h
@@ -49,6 +49,7 @@ struct TZR_Config {
bool show_cursor;
bool mixer;
bool png_loading;
+ bool light_system;
const char *title;
};