Commit Graph

16 Commits

Author SHA1 Message Date
9371a8738e Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer. 2020-05-22 09:08:50 +02:00
a2cb2d03ca Allegro CreateTexture{Go,Path} didn't respect source flag. 2020-05-20 19:45:45 +02:00
7f2e155edd Renderers now respect Location of NewRendererOptions. 2020-05-17 21:02:38 +02:00
32c53eb947 Fixed tooltip flickering when not blocking on events. 2020-05-17 21:02:07 +02:00
8560204c39 Added display move event.
- The Allegro (alui) implementation only provides emulation of the event (comparing the position every time other events are handled).
2020-05-17 15:30:52 +02:00
c78c4052d0 Refactored DrawTexture on Renderer to favor rendering using destination rectangle instead of a point. 2020-05-17 11:12:45 +02:00
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
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
f618c55b25 Embedded Allegro font struct directly inside font wrapped. 2020-05-13 16:49:45 +02:00
8c11aec276 Renamed image.go to texture.go. 2020-05-13 16:36:46 +02:00
1aad3bf11a Added keys.
Fixed bug where copy/cut/paste/select all weren't executed.
Fixed bug where start/end of selection wasn't properly set when typing.
Removed SetClipboard.
2020-05-13 15:57:04 +02:00
48aaf30182 Renamed Image{,s} to Texture{,s}. 2020-05-12 23:03:43 +02:00
2c9007ce9b Added renderer factory.
- Removes dependency on the specific backend from an application point-of-view.
2020-05-12 22:46:58 +02:00
280b4842e8 Moved allg5ui package one layer up. 2020-05-12 17:38:37 +02:00