summaryrefslogtreecommitdiff
path: root/src/example/example.h
blob: 7879257e5efddcedae658f2ca67c64ee5bc64442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _SSR_EXAMPLE_H_
#define _SSR_EXAMPLE_H_

#include "../ssr.h"
#include "../util/type.h"
#include "SDL2/SDL.h"

#define EXAMPLE(i)\
extern void onload##i(void*);\
extern void onevent##i(void*);\
extern void onupdate##i(void*);\
extern void ondraw##i(void*);

#define EXAMPLECUR       texture

EXAMPLE(cube);
EXAMPLE(line);
EXAMPLE(dot);
EXAMPLE(texture);

#endif