blob: fab64b2ecef0529104fc85f1837669da24967b32 (
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
32
33
|
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
#include <raylib.h>
#include <libtcc.h>
#include "sldjConfig.h"
#ifndef SCRIPTING_H
#define SCRIPTING_H
typedef Color (*LineScanner)(uint16_t x, uint16_t y, uint32_t frameNumber);
typedef struct SldjScripting {
TCCState* state;
LineScanner lineScanner;
char* fileBuf;
size_t fileSize;
} SldjScripting;
void initScripting(SldjScripting* scripting);
void closeScripting(SldjScripting* scripting);
void compileScript(SldjScripting* scripting, const char filePath[SLDJ_NAMEMAX]);
#endif
|