Commit Graph

81 Commits

Author SHA1 Message Date
9ecfeb1962 Move almost all classes out 2017-06-18 20:37:45 +08:00
c86b52ef19 Move cursor out 2017-06-18 17:43:23 +08:00
681ef2b0c6 Move Window out 2017-06-18 17:40:17 +08:00
dfa628cd14 Move Font,Music,Renderer,Texture,Timer out 2017-06-18 17:36:13 +08:00
62b86cb072 Move Point, ColorMode, RGBA out 2017-06-18 17:03:57 +08:00
0629ceadba Move Rect and Surface out of main file 2017-06-18 17:00:08 +08:00
112c1081aa Move Renderer settings out of class Window 2017-06-15 13:53:04 +08:00
a96b48b0c0 Add direct effect add/remove control to SoundPlayer 2017-06-14 20:50:12 +08:00
dd2ccfa55c Add advance MessageBox support 2017-06-12 13:01:28 +08:00
cbb780a9da Add system info querying functions (CPU,RAM) 2017-06-07 20:37:54 +08:00
6df4068539 Extend supercopy function in class Renderer 2017-06-07 20:11:28 +08:00
4608508476 class Renderer supports getting rendering target now. 2017-06-07 19:52:37 +08:00
f0cbeb9702 Enhanced Renderer
Add multi-draw support.
Add Scale, Viewport, LogicalSize, ClipRect support
Querying driver number.
2017-06-07 19:40:21 +08:00
d4aa4cbbaa Add version querying functions 2017-06-06 22:56:07 +08:00
3664de7972 Add Music Effect API to class MusicPlayer (Experimental) 2017-06-06 18:19:04 +08:00
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
79b97736b4 Add more functions to class Surface 2017-05-23 13:05:09 +08:00
1b2ba7b2d8 Update class Cursor. Fix compile bug in class Window 2017-05-22 19:17:02 +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
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
b6ecc0f856 Enhanced Window Constructor 2017-05-16 22:33:21 +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
3e2479e216 Add void timer function support. (without metaprogramming) 2017-05-05 09:02:39 +08: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
87b262325f use [[deprecated]] instead of attribute 2017-05-02 12:26:17 +08:00
76010ebd43 Add Cursor activating method. 2017-04-22 10:33:18 +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
06f2d8e448 Add Template Variable Parameter For class Timer 2017-04-19 14:11:08 +08:00
bbb8bed2db Merge branch 'mingw-dev' into pre-merge
Ready For Release!
2017-04-14 21:11:46 +08:00