Commit Graph

5 Commits

Author SHA1 Message Date
f20397c684 Moved default NewRendererOptions to generic part instead of in specific renderers. 2020-05-17 08:29:02 +02:00
3591e22c97 Added Fonts() to context similarly as Textures().
- Fonts are now managed by context instead of the implementation specific renderers.
2020-05-15 15:42:24 +02:00
b28b3e1838 Added Resources abstraction. 2020-05-15 14:20:07 +02:00
893bf513ad Few mouse interaction extensions for sdlui.
- Added Mouse{Enter,Leave}Event support.
- Simulating MouseWheel for MouseMotionEvent.
2020-05-15 09:59:53 +02:00
cdfb863ab0 Added SDL backend.
Added Action{,s}. List of actions that can be used to defer cleanup code (see NewRenderer implementations).
Added TextInputEvent (replaces the old KeyPressEvent) and added to new events KeyDown & KeyUp.
Added VSync to NewRendererOptions.
Removed IconScale from button.
Added ImageSource interface that replaces the Image/Texture method on the Texture interface. This makes converting back a texture to an image optional (since this is atypical for a hardware texture for instance).
Added new KeyModifier: OSCommand (Windows/Command key).
Added KeyState that can keep the state of keys (pressed or not).
Added KeyEnter, representing the Enter key.
Changed signatures of CreateTexture methods in Renderer.
Changed signatures of icon related method (removed factories).
Basic example now depends on sdlgui.
2020-05-15 09:20:44 +02:00