aboutsummaryrefslogtreecommitdiffstats
path: root/src/sldj.h
blob: 1db43313d7df9afab9f4a2d3d1f58bb2b24281e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdio.h>
#include <stdlib.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 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