aboutsummaryrefslogtreecommitdiffstats
path: root/src/sldj.h
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-03 15:43:19 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-03 15:43:19 +0000
commit69733d1f2171978e3d15078d24323af39d54c518 (patch)
tree4dacf17246b9a873fb1f505968eecac899e684fe /src/sldj.h
parent305c224104be6558f2ece595a47cf29348b60d66 (diff)
downloadsldj-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.h17
1 files changed, 13 insertions, 4 deletions
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 <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