diff options
Diffstat (limited to 'src/example/example.h')
-rw-r--r-- | src/example/example.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/example/example.h b/src/example/example.h new file mode 100644 index 0000000..7879257 --- /dev/null +++ b/src/example/example.h @@ -0,0 +1,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
\ No newline at end of file |