Просмотр исходного кода

game functions removed from C context

mikymod 12 лет назад
Родитель
Сommit
bf10f5296e
1 измененных файлов с 16 добавлено и 18 удалено
  1. 16 18
      game/Game.h

+ 16 - 18
game/Game.h

@@ -29,24 +29,22 @@ OTHER DEALINGS IN THE SOFTWARE.
 namespace crown
 {
 
-extern "C"
-{
-	/// Called exactly once after the engine is fully initialized
-	/// and ready to use. This function is the right place to allocate
-	/// and initialize all the main components of the game.
-	__declspec(dllexport) void init_1();
-
-	/// Called just before the engine starts to deallocate resources and
-	/// subsystems leading to terminating the execution.
-	/// Here you can safely perform all the necessary deallocation/destruction
-	/// of the previously allocated game resources and/or systems. 
-	__declspec(dllexport) void shutdown_1();
-
-	/// Called once per frame, here is the place you tipically perform input checking,
-	/// updates, drawing and so on. The @a dt parameter contains the last frame delta time
-	/// in seconds. 
-	__declspec(dllexport) void frame_1(float dt);
-}
+/// Called exactly once after the engine is fully initialized
+/// and ready to use. This function is the right place to allocate
+/// and initialize all the main components of the game.
+void init();
+
+/// Called just before the engine starts to deallocate resources and
+/// subsystems leading to terminating the execution.
+/// Here you can safely perform all the necessary deallocation/destruction
+/// of the previously allocated game resources and/or systems. 
+void shutdown();
+
+/// Called once per frame, here is the place you tipically perform input checking,
+/// updates, drawing and so on. The @a dt parameter contains the last frame delta time
+/// in seconds. 
+void frame(float dt);
+
 
 } // namespace crown