17 #ifndef AGX_INITIALIZER_H 18 #define AGX_INITIALIZER_H 34 #define AGX_STATIC_INITIALIZER() \ 35 static void AGX_CONCAT(__agx_static_init, __LINE__)(void); \ 36 static agx::StaticInitializer AGX_CONCAT(__agx_static_init_dispatch, __LINE__)(&AGX_CONCAT(__agx_static_init, __LINE__)); \ 37 static void AGX_CONCAT(__agx_static_init, __LINE__)(void) 43 typedef void (*Implementation)(void);
50 #define AGX_STATIC_SHUTDOWN() \ 51 static void AGX_CONCAT(__agx_static_shutdown, __LINE__)(void); \ 52 static agx::StaticShutdown AGX_CONCAT(__agx_static_shutdown_dispatch, __LINE__)(&AGX_CONCAT(__agx_static_shutdown, __LINE__)); \ 53 static void AGX_CONCAT(__agx_static_shutdown, __LINE__)(void) 59 typedef void (*Implementation)(void);
65 Implementation m_implementation;
74 #define AGX_INIT_CALLBACK() \ 75 static void AGX_CONCAT(__agx_init_callback, __LINE__)(); \ 76 static agx::InitCallback AGX_CONCAT(__agx_init_callback_dispatch, __LINE__)(&AGX_CONCAT(__agx_init_callback, __LINE__)); \ 77 static void AGX_CONCAT(__agx_init_callback, __LINE__)() 88 static void triggerInit();
108 #define AGX_SHUTDOWN_CALLBACK() \ 109 static void AGX_CONCAT(__agx_shutdown_callback, __LINE__)(void); \ 110 static agx::ShutdownCallback AGX_CONCAT(__agx_shutdown_callback_dispatch, __LINE__)(&AGX_CONCAT(__agx_shutdown_callback, __LINE__)); \ 111 static void AGX_CONCAT(__agx_shutdown_callback, __LINE__)(void) 118 typedef void (*Implementation)(void);
124 static void triggerShutdown();
127 Implementation m_implementation;
void AGXCORE_EXPORT init()
Deprecated, no need for explicit initialization.
Do not use class directly. Use AGX_INIT_CALLBACK instead.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void AGXCORE_EXPORT shutdown()
Shutdown the AGX API, after this call no AGX API calls should be done.