aboutsummaryrefslogtreecommitdiffstats
path: root/src/sldj.h
diff options
context:
space:
mode:
authornathansmith117 <nathansmith@disroot.org>2025-03-05 15:40:57 +0000
committernathansmith117 <nathansmith@disroot.org>2025-03-05 15:40:57 +0000
commitc2cf22bbfb26f0f778ded8be82ddb16816b8c8f0 (patch)
treec74cd00c2c7a766f7bd263b307e3cba98c7d86d2 /src/sldj.h
parent449e5a9c92c1fe62dc0dd75718486b791717184f (diff)
downloadsldj-c2cf22bbfb26f0f778ded8be82ddb16816b8c8f0.tar.gz
sldj-c2cf22bbfb26f0f778ded8be82ddb16816b8c8f0.tar.bz2
sldj-c2cf22bbfb26f0f778ded8be82ddb16816b8c8f0.zip
More sliders
Diffstat (limited to 'src/sldj.h')
-rw-r--r--src/sldj.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sldj.h b/src/sldj.h
index 694882e..4ffb4cd 100644
--- a/src/sldj.h
+++ b/src/sldj.h
@@ -31,6 +31,13 @@ typedef struct Sldj {
struct {
Rectangle fpsSlider;
float fpsSliderValue;
+
+ // Viewport shit.
+ Rectangle widthSlider;
+ Rectangle heightSlider;
+ float widthSliderValue;
+ float heightSliderValue;
+ Rectangle viewportButton;
} gui;
} Sldj;
@@ -41,7 +48,7 @@ void closeSldj(Sldj* sldj);
void resizeGui(Sldj* sldj);
void resetViewportRect(Sldj* sldj, float scale);
-void resetViewport(Sldj* sldj, int width, int height, float scale);
+void resetViewport(Sldj* sldj, int width, int height);
void reloadScriptContext(Sldj* sldj);
void reloadScript(Sldj* sldj);