aboutsummaryrefslogtreecommitdiffstats
path: root/src/sldj.h
diff options
context:
space:
mode:
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