summaryrefslogtreecommitdiff
path: root/src/example/example.h
blob: 8e2874d1886486da037478cc023438477ccfb535 (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
25
#ifndef _SSR_EXAMPLE_H_
#define _SSR_EXAMPLE_H_

#include "../ssr.h"
#include "../util/type.h"
#include "../extend/camera.h"
#include "../gizmo/gizmo.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 CURRENT_EXAMPLE       texture

/*All examples*/

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

#endif