diff options
author | chai <chaifix@163.com> | 2019-12-04 00:07:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-04 00:07:32 +0800 |
commit | 2e82e2ddd0852b8063a3d6645366f53ee844e273 (patch) | |
tree | 41ec10760f2d2c9f1f782a918f48e1287da2a4b4 /src/example/example.h |
+init
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 |