blob: 6cb9a648e8538fddec8f0473102a5572d2d3e7ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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);
EXAMPLE(bloom);
#endif
|