From 67009f9bcb7c6297d5fa868d8f990a2784cbbcaa Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 6 Apr 2017 13:15:41 +0800 Subject: [PATCH 1/4] Add download link for other libraries. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1bb9bdb..7eb0b60 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,7 @@ C4droid: 长按编译键选择编译模式为Makefile. 选择编译目标为SDL2 [前往SDL2官网下载最新版本](http://www.libsdl.org/download-2.0.php) [C4droid on GooglePlay](https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en) + +[SDL2_image下载地址](https://www.libsdl.org/projects/SDL_image/)   +[SDL2_mixer下载地址](https://www.libsdl.org/projects/SDL_mixer/) +[SDL2_ttf下载地址](https://www.libsdl.org/projects/SDL_ttf/) From db29ed54f6e45efb30af347aa7c61993f0872f67 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Fri, 7 Apr 2017 16:50:53 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7eb0b60..0c4457b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ A C++ Mini Engine. Based on SDL2. C++编写的SDL2引擎. -**可能存在的错误**:由于Widget体系尚未构建完全,使用时可能出现问题。若只使用MiniEngine主体则不会出现问题。 +**可能存在的错误**: 由于Event和Widget体系尚未构建完全,使用时可能出现问题(包括未解决的编译错误)。若只使用MiniEngine主体则不会出现问题。 +**重要提示**: master分支为稳定分支,dev分支为开发分支. ### 编译说明 @@ -15,6 +16,8 @@ Windows: 请使用Codeblocks 16.01(推荐)载入所有.cpp文件.接下来Codebl > SDL2 Mixer (SDL2_mixer.lib) > SDL2 TTF (SDL2_ttf.lib) +Windows-Visual Studio: 使用VS编译本项目可能会出现某些错误,目前还没有很好的解决办法. + C4droid: 长按编译键选择编译模式为Makefile. 选择编译目标为SDL2 Application. 修改程序名称为program_name(此处与makefile对应即可) > 依赖库 > C4droid本体 @@ -24,6 +27,7 @@ C4droid: 长按编译键选择编译模式为Makefile. 选择编译目标为SDL2 [前往SDL2官网下载最新版本](http://www.libsdl.org/download-2.0.php) [C4droid on GooglePlay](https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en) -[SDL2_image下载地址](https://www.libsdl.org/projects/SDL_image/)   +##### 依赖库下载地址 +[SDL2_image下载地址](https://www.libsdl.org/projects/SDL_image/) [SDL2_mixer下载地址](https://www.libsdl.org/projects/SDL_mixer/) [SDL2_ttf下载地址](https://www.libsdl.org/projects/SDL_ttf/) From 94a8afd09c331e54dd630a4ec0a7914c5bd057ea Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Mon, 10 Apr 2017 21:14:12 +0800 Subject: [PATCH 3/4] Fix compile error in VS. Include path changed. --- MiniEngine.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MiniEngine.h b/MiniEngine.h index 96db246..83ea367 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -1,9 +1,20 @@ #pragma once + +#ifdef _MSC_VER +/// Visual Studio (VC++ Compiler) +#include +#undef main +#include +#include +#include +#else +/// CodeBlocks (MinGW Compiler) #include #undef main #include #include #include +#endif #include #include From 7650d1fde9198f08e026d99eed60086dfc70e126 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Fri, 14 Apr 2017 21:01:32 +0800 Subject: [PATCH 4/4] Add MIT License --- LICENSE | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..472ac23 --- /dev/null +++ b/LICENSE @@ -0,0 +1,8 @@ +MIT License +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.