From 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 13:37:27 +0800 Subject: =?UTF-8?q?*=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/core/README.md | 1 + src/libjin/core/je_configuration.h | 8 ++++++++ src/libjin/core/je_types.h | 24 ------------------------ src/libjin/core/je_version.h | 26 ++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 24 deletions(-) create mode 100644 src/libjin/core/README.md delete mode 100644 src/libjin/core/je_types.h create mode 100644 src/libjin/core/je_version.h (limited to 'src/libjin/core') diff --git a/src/libjin/core/README.md b/src/libjin/core/README.md new file mode 100644 index 0000000..b393007 --- /dev/null +++ b/src/libjin/core/README.md @@ -0,0 +1 @@ +此文件夹下的文件控制编译和提供一些版本信息 \ No newline at end of file diff --git a/src/libjin/core/je_configuration.h b/src/libjin/core/je_configuration.h index 819b34d..f70ae5a 100644 --- a/src/libjin/core/je_configuration.h +++ b/src/libjin/core/je_configuration.h @@ -66,4 +66,12 @@ #define jin_graphics_font #define jin_graphics_shader +#define jin_audio + +#define jin_filesystem + +#define jin_game + +#define jin_core + #endif \ No newline at end of file diff --git a/src/libjin/core/je_types.h b/src/libjin/core/je_types.h deleted file mode 100644 index 5fd6c12..0000000 --- a/src/libjin/core/je_types.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef __JE_CORE_TYPES_H -#define __JE_CORE_TYPES_H - -#include - -namespace JinEngine -{ - namespace Core - { - - typedef int8_t int8; ///< Signed integer with a size of 8 bits. Supports values from -128 to 127 - typedef uint8_t uint8; ///< Unsigned integer with a size of 8 bits. Supports values from 0 to 255. - typedef uint8 byte; ///< Unsigned integer with 8 bits (1 byte). Supports 256 values from 0 to 255. - typedef int16_t int16; ///< Signed integer with a size of 16 bits. Supports values from -32768 to 32767 - typedef uint16_t uint16; ///< Unsigned integer with a size of 16 bits. Supports values from 0 to 65535. - typedef int32_t int32; ///< Signed integer with a size of 32 bits. Supports values from -2147483648 to 2147483647. - typedef uint32_t uint32; ///< Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1). - typedef int64_t int64; ///< Signed integer with a size of 64 bits. Supports values from -(2^63) to (2^63 - 1). - typedef uint64_t uint64; ///< Unsigned integer with a size of 64 bits, Supports values from 0 to (2^64 - 1). - - } -} - -#endif // __JE_CORE_TYPES_H \ No newline at end of file diff --git a/src/libjin/core/je_version.h b/src/libjin/core/je_version.h new file mode 100644 index 0000000..6a91797 --- /dev/null +++ b/src/libjin/core/je_version.h @@ -0,0 +1,26 @@ +#ifndef __JE_CORE_VERSION_H +#define __JE_CORE_VERSION_H + +namespace JinEngine +{ + namespace Core + { + + /// + /// Get version of Jin. + /// + /// @return Version of Jin. + /// + int getVersion(); + + /// + /// Get author of Jin. + /// + /// @return Author of Jin. + /// + int getAuthor(); + + } // namespace Core +} // namespace JinEngine + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0