Commit Graph

229 Commits

Author SHA1 Message Date
f1f86c933d Add Sound Effect API to class SoundPlayer (Experimental) 2017-06-06 16:00:51 +08:00
01c31a4f71 Add decoder query functions in class MusicPlayer and SoundPlayer 2017-06-06 15:50:56 +08:00
bf0f6b8b6d Add more functions to class Font 2017-06-06 13:24:43 +08:00
aacd73d728 Update constant attribute in class Surface, Renderer, Window,
SharedLibrary
2017-06-05 22:01:15 +08:00
4d636586c2 Update constant attribute to function in class Rect, Point, ErrorViewer,
Texture
2017-06-05 20:43:33 +08:00
5581a57e1b Update constant attribute to functions in class Surface 2017-06-05 15:51:29 +08:00
9019971e19 Update C/V attribute functions of class RGBA, class Renderer, class Font 2017-06-05 15:40:16 +08:00
e6624b8238 class Font supports Unicode now. 2017-06-05 14:07:57 +08:00
7cecae5695 Fix Compile error on low level SDL2. 2017-06-01 22:50:17 +08:00
d8e8deb031 Add template-like get method in class SharedLibrary 2017-05-31 22:30:10 +08:00
d450ce8636 Add support for set/get window opacity 2017-05-31 22:17:30 +08:00
7822544701 Add More Functions to class Surface 2017-05-25 18:34:59 +08:00
d8e2bb9e2b Add Surface compare function.
Build Notice!:
I got a link error while compiling the full project. The link error is
"undefined reference to SDL_GetRGBA" and "undefined reference to
SDL_snprintf"...
Currently there is one way to solve it : Link SDL2test.lib first (Before
SDL2 and SDL2main)
2017-05-24 18:17:29 +08:00
1cdf7956f6 Need Surface operating methods.
Merge branch 'mingw-dev' into mingw-dev-test
2017-05-24 18:03:44 +08:00
709e67a40f Fix compile error on C4 2017-05-24 03:09:27 +08:00
337694bd89 Fix compile error 2017-05-24 02:57:23 +08:00
f2d60629a0 Use new UTF8-GBK converter. 2017-05-23 22:31:57 +08:00
79b97736b4 Add more functions to class Surface 2017-05-23 13:05:09 +08:00
1e8a0d6155 Add SDLTest lib support 2017-05-23 12:26:42 +08:00
1b2ba7b2d8 Update class Cursor. Fix compile bug in class Window 2017-05-22 19:17:02 +08:00
52cb15482e More Event Functions 2017-05-22 19:07:26 +08:00
14c31689be Add more support about keyboard.
Now class Window has default constructor.
2017-05-22 18:47:28 +08:00
08a858acf0 Add Clipboard Support 2017-05-22 18:27:56 +08:00
ee8780fe30 Fix Runtime Bug in class Timer
Now callable and vcallable are copied, while args... remains referenced.
2017-05-22 15:02:04 +08:00
a7ab24d8ab Fix bug in class Timer (VoidCallable Constructor) 2017-05-21 21:08:53 +08:00
6c4f1c345d Merge branch 'mingw-dev-xml-parser' into mingw-dev
Provide XML Parsing
2017-05-21 10:20:08 +08:00
54e057b590 Add More Function of Attr and Node 2017-05-20 16:00:19 +08:00
3e995ba610 Add XXX::release() implement. 2017-05-18 18:14:29 +08:00
c46455a2e7 Add Release Interface (For Global Objects Managing) 2017-05-18 17:58:10 +08:00
26beb30f77 Fix bug in StringEngine 2017-05-18 13:04:20 +08:00
547be65c3e Add more functions to Attr and Node 2017-05-18 09:00:27 +08:00
d47a3ed09d Add support functions of XML Node 2017-05-17 23:24:43 +08:00
fc4940c09b Add XML Objects
Document,Node,Attribute...
2017-05-17 21:40:33 +08:00
b6ecc0f856 Enhanced Window Constructor 2017-05-16 22:33:21 +08:00
0d5e8e2893 Set include path of VS to normal in config 2017-05-16 16:50:16 +08:00
65435476b6 Add Configure Header 2017-05-16 16:27:35 +08:00
6901b0054c Add font style single-query methods 2017-05-16 16:23:40 +08:00
00a3000d1d Fix bug in Font::setFontStyle 2017-05-16 15:52:00 +08:00
b40db11955 Query of font size is supported 2017-05-16 15:23:34 +08:00
d77c894adc Add SharedLibrary Support 2017-05-11 11:53:26 +08:00
d8d77a5bd2 Add more functions to class Rect 2017-05-09 10:53:02 +08:00
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