Commit Graph

238 Commits

Author SHA1 Message Date
bb563d069d Change decltype to typedef. 2017-05-08 15:42:54 +08:00
7cab64132d Add more support for Event Handling. 2017-05-08 14:17:42 +08:00
a33a27dbb0 Add More Event Handling Functions.
Remove Debug Message in _global_timer_executor...
2017-05-05 17:28:11 +08:00
3e2479e216 Add void timer function support. (without metaprogramming) 2017-05-05 09:02:39 +08:00
1641dbf4bc Merge branch 'master' into mingw-dev 2017-05-04 18:14:02 +08:00
9d9ba52d76 Merge pull request #6 from Kiritow/pre-merge
Weekly Update
2017-05-02 09:53:42 -05:00
f4c629393b Fix compile warning generated by VC.
Add LooperWithTime.
Fix Bug: Change Lambda Capture from "&" (Keep Reference) to "=" (Copy).

Before this fix, the following code will cause a runtime error:

int AppMain()
{
	Window wnd("Title", 1280, 768);
	Renderer rnd = wnd.getRenderer();

	Looper lp;
	lp + make_pair(SDL_QUIT, []() {printf("Quit!\n");});
	lp.run();

	return 0;
}

Now, the bug is fixed~!
2017-05-02 22:40:30 +08:00
2ecddc44e7 Add Poller
Add implement of Looper::operator -
2017-05-02 20:51:56 +08:00
d18fcf385d Rewrite Event Looper 2017-05-02 19:05:48 +08:00
64ec1cfa42 Add Event Looper 2017-05-02 13:37:03 +08:00
65c8b2e6ef Add Minimum Event Support 2017-05-02 12:59:57 +08:00
8a9d347800 Merge remote-tracking branch 'refs/remotes/origin/mingw-dev' into mingw-dev 2017-05-02 12:26:43 +08:00
87b262325f use [[deprecated]] instead of attribute 2017-05-02 12:26:17 +08:00
71c6b36a1c Update makefile_linux
Change Command Line Define to __LINUX__
2017-05-02 12:18:40 +08:00
d43ecd4981 Add makefile for linux 2017-05-02 12:14:34 +08:00
c94ae16f77 Add Document For class Rect 2017-05-01 20:41:13 +08:00
c2bb8ff190 Add Document 2017-05-01 20:25:51 +08:00
89048bba72 Add makefile for C4droid build 2017-04-29 11:32:19 +08:00
976ca24326 Merge branch 'mingw-dev-sqlite' into mingw-dev
Bug Fixed in branch mingw-dev-sqlite.
2017-04-22 10:34:16 +08:00
01a8eb27b1 Fix Compile Error 2017-04-22 10:33:43 +08:00
76010ebd43 Add Cursor activating method. 2017-04-22 10:33:18 +08:00
0c5186c11a Merge branch 'mingw-dev-sqlite' into mingw-dev
Accept Changes from mingw-dev-sqlite
2017-04-22 10:25:59 +08:00
9e055884dc Add implements of some methods in class Cursor 2017-04-21 22:59:25 +08:00
67369a1def Change previous SQLDB::exec(...callback...) to SQLDB::exec_raw 2017-04-21 13:20:21 +08:00
bf3fc19eaa Add class Cursor 2017-04-21 11:25:08 +08:00
9786aea48a Add Grab setter and getter to class Window
Grab:
When input is grabbed the mouse is confined to the window.

If the caller enables a grab while another window is currently grabbed, the other window loses its grab in favor of the caller's window.
2017-04-21 10:52:49 +08:00
21a30ccce5 Merge pull request #5 from Kiritow/pre-merge
SQLite Added with Modern C++.
2017-04-19 14:33:55 +08:00
9090acdc0f Merge branch 'mingw-dev-sqlite' into mingw-dev
Accept Changes from branch Dev-SQLite
Modern C++ is GREAT !
2017-04-19 14:25:40 +08:00
06f2d8e448 Add Template Variable Parameter For class Timer 2017-04-19 14:11:08 +08:00
b9d10a9372 Add Template variable parameter
Now, SQLDB::exec(SomeCommand,NormalFunction,NormalParamenters...) is
allowed.
Modern C++ !
2017-04-19 09:19:51 +08:00
43ff36f8c6 Merge branch 'mingw-dev-sqlite' into mingw-dev
SQLite is perfect! Accept it from branch 'mingw-dev-sqlite'.
2017-04-16 20:37:48 +08:00
f264e7ce16 Fix include compile error 2017-04-16 20:24:54 +08:00
32d5cdee28 Rename SQLite Wrapper 2017-04-16 18:24:48 +08:00
9ac5f9833a Update SQLite Wrapper
Remove debug outputs.
Add Error Message handling interfaces.
Add namespace (MiniEngine::SQL).
2017-04-16 18:19:21 +08:00
92f2d9b4af Change pointers to smart pointer (shared_ptr) 2017-04-16 17:32:39 +08:00
95dbdbd277 Merge branch 'mingw-dev' into mingw-dev-sqlite
Catch up with main develop branch.
2017-04-16 16:15:15 +08:00
ba350b6f3b Fix Compile Warning in Renderer::superCopy 2017-04-16 16:12:58 +08:00
9ed5e15d6b Add SQLite Wrapper 2017-04-16 16:00:44 +08:00
fd8642ce7f Add SQLite Support 2017-04-16 16:00:28 +08:00
dca9c0fc07 Merge branch 'master' into mingw-dev
This is a fast forward merge, but we use '--no-ff' to avoid fast-forward
2017-04-15 15:24:43 +08:00
cc2823c46a Merge pull request #4 from Kiritow/pre-merge
Get Ready For First Release!
2017-04-14 21:23:14 +08:00
bbb8bed2db Merge branch 'mingw-dev' into pre-merge
Ready For Release!
2017-04-14 21:11:46 +08:00
7650d1fde9 Add MIT License 2017-04-14 21:01:32 +08:00
d9b26de617 Add Scaled Blit Functions to Surface 2017-04-14 20:46:07 +08:00
f9c2e872df Change rapidxml header to avoid compile errors 2017-04-13 20:28:16 +08:00
2b19c80a7e Create header and source 2017-04-13 16:19:35 +08:00
3043ae0684 Add Texture-like functions in class Surface 2017-04-13 09:03:44 +08:00
a2a3e493c5 Add Rendering-like functions in class Surface 2017-04-12 09:50:12 +08:00
40c5f0dc91 Add some power functions 2017-04-12 09:26:03 +08:00
085463c873 Add BlendMode caster 2017-04-12 09:22:15 +08:00