From 69733d1f2171978e3d15078d24323af39d54c518 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 3 Feb 2025 08:43:19 -0700 Subject: Scripting working so far --- src/sldj.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/sldj.h') diff --git a/src/sldj.h b/src/sldj.h index 4db6afb..1db4331 100644 --- a/src/sldj.h +++ b/src/sldj.h @@ -1,22 +1,31 @@ #include #include -#include -#include #include +#include + +#include #include "sldjConfig.h" #include "util.h" +#include "scripting.h" #ifndef SLDJ_H #define SLDJ_H typedef struct Sldj { - RenderTexture screenTexture; - int frameCounter; + RenderTexture viewport; + + uint32_t frameCounter; + uint16_t xCount; + uint16_t yCount; + + SldjScripting scripting; } Sldj; void initSldj(Sldj* sldj); void updateSldj(Sldj* sldj); void closeSldj(Sldj* sldj); +void resetViewport(Sldj* sldj, int width, int height); + #endif -- cgit v1.2.3