aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/core')
-rw-r--r--src/libjin/core/je_configuration.h111
-rw-r--r--src/libjin/core/je_version.h32
2 files changed, 72 insertions, 71 deletions
diff --git a/src/libjin/core/je_configuration.h b/src/libjin/core/je_configuration.h
index f70ae5a..167ffd0 100644
--- a/src/libjin/core/je_configuration.h
+++ b/src/libjin/core/je_configuration.h
@@ -1,72 +1,22 @@
#ifndef __JE_COMMON_MODULES_H
#define __JE_COMMON_MODULES_H
-/*
-* ģģı룬Ҫģرղ
-*/
-
-#define LIBJIN_MODULES_AUDIO 1
-#define LIBJIN_AUDIO_SDLAUDIO 1
-#define LIBJIN_AUDIO_OPENAL 1
-
-#define LIBJIN_MODULES_RENDER 1
-
-#define LIBJIN_MODULES_DEBUG 1
-
-#define LIBJIN_MODULES_FILESYSTEM 1
-
-#define LIBJIN_MODULES_INPUT 1
-#define LIBJIN_INPUT_SDL 1
-
-#define LIBJIN_MODULES_MATH 1
-
-#define LIBJIN_MODULES_NET 1
-#define LIBJIN_NET_TEKCOS 1
-
-#define LIBJIN_MODULES_PHYSICS 0
-#define LIBJIN_PHYSICS_BOX2D 1
-#define LIBJIN_PHYSICS_NEWTON 1
-
-#define LIBJIN_MODULES_TILEMAP 1
-
-#define LIBJIN_MODULES_UI 1
-
-#define LIBJIN_MODULES_TOOLS 0
-#define LIBJIN_TOOLS_COMPONENT 1
-#define LIBJIN_TOOLS_EVENTMSGCENTER 1
-#define LIBJIN_TOOLS_XML 1
-#define LIBJIN_TOOLS_CSV 1
-#define LIBJIN_TOOLS_JSON 1
-
-#define LIBJIN_MODULES_THREAD 1
-#define LIBJIN_THREAD_SDL 1
-#define LIBJIN_THREAD_CPP 0
-#define LIBJIN_THREAD_PTHREAD 0
-
-#define LIBJIN_MODULES_TIME 1
-#define LIBJIN_TIME_SDL 1
-
-/*
-* Open libjin debug
-*/
-
-#define LIBJIN_DEBUG 0
-
-/*
-* Operating system
-*/
-
-#define LIBJIN_WINDOWS 1
-#define LIBJIN_MACOS 2
-#define LIBJIN_LINUX 3
-
-#define LIBJIN_OS LIBJIN_WINDOWS
-
-/// ģ
-#define jin_graphics
-#define jin_graphics_font
-#define jin_graphics_shader
-
-#define jin_audio
+
+#define jin_debug
+
+#define jin_os_windows 0x01
+#define jin_os_mac 0x02
+#define jin_os_linux 0x03
+#define jin_os jin_os_windows
+
+#define jin_graphics_font 0x02
+#define jin_graphics_shader 0x04
+#define jin_graphics_particle 0x08
+#define jin_graphics_animation 0x10
+#define jin_graphics (jin_graphics_font|jin_graphics_shader)
+
+#define jin_audio_sdl 0x01
+#define jin_audio_openal 0x02
+#define jin_audio jin_audio_sdl
#define jin_filesystem
@@ -74,4 +24,29 @@
#define jin_core
-#endif \ No newline at end of file
+#define jin_filesystem
+
+#define jin_input_sdl 0x01
+#define jin_input jin_input_sdl
+
+#define jin_math
+
+#define jin_net_tekcos 0x01
+#define jin_net jin_net_tekcos
+
+#define jin_physics_newton 0x01
+#define jin_physics_box2d 0x02
+//#define jin_physics jin_physics_newton
+
+#define jin_thread_sdl 0x01
+#define jin_thread_cpp 0x02
+#define jin_thread_pthread 0x03
+#define jin_thread jin_thread_sdl
+
+#define jin_time_sdl 0x01
+#define jin_time_cpp 0x02
+#define jin_time jin_time_sdl
+
+#define jin_ai
+
+#endif // __JE_COMMON_MODULES_H \ No newline at end of file
diff --git a/src/libjin/core/je_version.h b/src/libjin/core/je_version.h
index 6a91797..77302c6 100644
--- a/src/libjin/core/je_version.h
+++ b/src/libjin/core/je_version.h
@@ -11,16 +11,42 @@ namespace JinEngine
///
/// @return Version of Jin.
///
- int getVersion();
+ const char* getVersion()
+ {
+ return "Jin 0.1";
+ }
///
/// Get author of Jin.
///
/// @return Author of Jin.
///
- int getAuthor();
+ const char* getAuthor()
+ {
+ return "Chai";
+ }
+
+ ///
+ /// Get release of Jin.
+ ///
+ /// @return release string of Jin.
+ ///
+ const char* getRelease()
+ {
+ return "Jin 0.1.1";
+ }
+
+ ///
+ /// Get release of Jin.
+ ///
+ /// @return Revision of Jin.
+ ///
+ int getRevision()
+ {
+ return 101;
+ }
} // namespace Core
} // namespace JinEngine
-#endif \ No newline at end of file
+#endif // __JE_CORE_VERSION_H \ No newline at end of file