Add Files

This commit is contained in:
Kirigaya Kazuto 2017-05-21 11:11:56 +08:00
parent bf66b31bab
commit 1ace3ae1d4
8 changed files with 149 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
bin/
obj/
*.ttf

View File

@ -32,6 +32,8 @@
<Add option="-Wall" />
<Add option="-fexceptions" />
</Compiler>
<Unit filename="global.cpp" />
<Unit filename="global.h" />
<Unit filename="main.cpp" />
<Extensions>
<code_completion />

106
BlankWorld.depend Normal file
View File

@ -0,0 +1,106 @@
# depslib dependency file v1.0
1495336129 source:d:\codeblocks_codes\blankworld\game.cpp
"Game.h"
1495335749 source:d:\codeblocks_codes\blankworld\global.cpp
"global.h"
1495335727 d:\codeblocks_codes\blankworld\global.h
"MiniEngine/MiniEngine.h"
1495335823 d:\codeblocks_codes\blankworld\miniengine\miniengine.h
"MiniEngine_Config.h"
<string>
<memory>
<functional>
<vector>
1495335593 d:\codeblocks_codes\blankworld\miniengine\miniengine_config.h
<SDL2/SDL.h>
<SDL2/SDL_image.h>
<SDL2/SDL_ttf.h>
<SDL2/SDL_mixer.h>
1495336096 source:d:\codeblocks_codes\blankworld\main.cpp
"global.h"
"Game.h"
"MiniEngine/MiniEngine_Event.h"
1495336118 d:\codeblocks_codes\blankworld\game.h
1495335593 source:d:\codeblocks_codes\blankworld\miniengine\miniengine.cpp
"MiniEngine.h"
<algorithm>
<map>
<mutex>
<fstream>
<unistd.h>
"rapidxml/rapidxml.hpp"
"rapidxml/rapidxml_print.hpp"
"rapidxml/rapidxml_utils.hpp"
1495335581 d:\codeblocks_codes\blankworld\miniengine\rapidxml\rapidxml.hpp
<cstdlib>
<cassert>
<new>
<exception>
1495335593 d:\codeblocks_codes\blankworld\miniengine\rapidxml\rapidxml_print.hpp
"rapidxml.hpp"
<ostream>
<iterator>
1495335581 d:\codeblocks_codes\blankworld\miniengine\rapidxml\rapidxml_utils.hpp
"rapidxml.hpp"
<vector>
<string>
<fstream>
<stdexcept>
1495335581 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_android.cpp
"MiniEngine.h"
1495335581 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_event.cpp
"MiniEngine_Event.h"
1495335593 d:\codeblocks_codes\blankworld\miniengine\miniengine_event.h
"MiniEngine_Config.h"
<map>
<list>
<functional>
1495335581 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_sqlite.cpp
"MiniEngine_SQLite.h"
<cstring>
<cstdio>
1495335581 d:\codeblocks_codes\blankworld\miniengine\miniengine_sqlite.h
"sqlite/sqlite3.h"
<string>
<memory>
1495335581 d:\codeblocks_codes\blankworld\miniengine\sqlite\sqlite3.h
<stdarg.h>
1495335581 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_widget.cpp
"MiniEngine_Widget.h"
1495335581 d:\codeblocks_codes\blankworld\miniengine\miniengine_widget.h
"MiniEngine.h"
<functional>
<vector>
1495335581 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_windows.cpp
"MiniEngine.h"
<windows.h>
1495335593 source:d:\codeblocks_codes\blankworld\miniengine\miniengine_xml.cpp
"MiniEngine_Xml.h"
"rapidxml/rapidxml_print.hpp"
"rapidxml/rapidxml_utils.hpp"
<fstream>
1495335593 d:\codeblocks_codes\blankworld\miniengine\miniengine_xml.h
"rapidxml/rapidxml.hpp"
<string>

6
Game.cpp Normal file
View File

@ -0,0 +1,6 @@
#include "Game.h"
void GameMain()
{
}

3
Game.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
void GameMain();

13
global.cpp Normal file
View File

@ -0,0 +1,13 @@
#include "global.h"
using namespace MiniEngine;
Window wnd;
Renderer rnd;
Font font;
void ReleaseGlobal()
{
font.release();
rnd.release();
wnd.release();
}

8
global.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
#include "MiniEngine/MiniEngine.h"
extern MiniEngine::Window wnd;
extern MiniEngine::Renderer rnd;
extern MiniEngine::Font font;
void ReleaseGlobal();

View File

@ -1,9 +1,14 @@
#include <iostream>
#include "global.h"
#include "Game.h"
#include "MiniEngine/MiniEngine_Event.h"
using namespace MiniEngine;
using namespace std;
int main()
int AppMain()
{
cout << "Hello world!" << endl;
wnd=Window("Blank World",1024,768);
rnd=wnd.getRenderer();
font=Font("msyh.ttf",18);
GameMain();
ReleaseGlobal();
return 0;
}