summaryrefslogtreecommitdiff
path: root/src/example/example.h
blob: 15b547ed322bc92a7d141b0b8d6b1d21c1495018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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

/*All examples*/

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

#endif