diff options
author | nathansmith117 <nathansmith117@sdf.org> | 2025-02-03 15:43:19 +0000 |
---|---|---|
committer | nathansmith117 <nathansmith117@sdf.org> | 2025-02-03 15:43:19 +0000 |
commit | 69733d1f2171978e3d15078d24323af39d54c518 (patch) | |
tree | 4dacf17246b9a873fb1f505968eecac899e684fe /src/sldj.h | |
parent | 305c224104be6558f2ece595a47cf29348b60d66 (diff) | |
download | sldj-69733d1f2171978e3d15078d24323af39d54c518.tar.gz sldj-69733d1f2171978e3d15078d24323af39d54c518.tar.bz2 sldj-69733d1f2171978e3d15078d24323af39d54c518.zip |
Scripting working so far
Diffstat (limited to 'src/sldj.h')
-rw-r--r-- | src/sldj.h | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,22 +1,31 @@ #include <stdio.h> #include <stdlib.h> -#include <raylib.h> -#include <math.h> #include <stdint.h> +#include <math.h> + +#include <raylib.h> #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 |