Explorar o código

namespace crown removed

mikymod %!s(int64=12) %!d(string=hai) anos
pai
achega
1a5def6b36
Modificáronse 1 ficheiros con 24 adicións e 22 borrados
  1. 24 22
      game/Game.h

+ 24 - 22
game/Game.h

@@ -26,26 +26,28 @@ OTHER DEALINGS IN THE SOFTWARE.
 
 #pragma once
 
-namespace crown
-{
-
-
-	/// 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_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. 
-	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. 
-	void frame_1(float dt);
-
-
-} // namespace crown
+#include "Config.h"
+
+#ifdef WINDOWS
+	#define CE_EXPORT extern "C" __declspec(dllexport)
+#endif
+#ifndef WINDOWS
+	#define CE_EXPORT
+#endif
+
+/// 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.
+CE_EXPORT 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. 
+CE_EXPORT 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. 
+CE_EXPORT void frame(float dt);