summaryrefslogtreecommitdiff
path: root/src/example/example.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-03-04 21:12:16 +0800
committerchai <chaifix@163.com>2020-03-04 21:12:16 +0800
commit38f0535e00f12ea7da30c39423fc39f6f92cca50 (patch)
tree6bee7806f2f83d2b821cd97031dc37afc554c393 /src/example/example.h
parentb04283601451185ee8d95b281e7bd53d62fce4d4 (diff)
*misc
Diffstat (limited to 'src/example/example.h')
-rw-r--r--src/example/example.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/example/example.h b/src/example/example.h
index 8e2874d..f99bdc5 100644
--- a/src/example/example.h
+++ b/src/example/example.h
@@ -6,20 +6,7 @@
#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);
+//https://social.msdn.microsoft.com/Forums/vstudio/en-US/65fd5b73-0fb4-40e0-81ec-92d67f9f48ad/how-to-get-function-address-from-current-process?forum=vcgeneral
+#define EXAMPLE __declspec(dllexport)
#endif \ No newline at end of file