Andrea Odetti
f144cb037f
SDL: Support Mouse.
...
In ImGui there are a couple of issues:
1) it ignores the menu area when computing relative motion
2) does not work well with windowed video
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-04 16:44:04 +01:00
Andrea Odetti
5230a6a558
Add ability to step emulator.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 11:14:03 +00:00
Andrea Odetti
ddd1c4f301
Move ImGui Settings window(s) to a separate class.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-06 17:41:32 +00:00
Andrea Odetti
c416eee9df
sa2: add namespace and remove tabs.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:31:24 +00:00
Andrea Odetti
3b917e93be
common2: add namespace and reformat everything with space over tabs.
...
This makes it "possible" to use other editors (than emacs).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:04:50 +00:00
Andrea Odetti
c81b4ab1bf
ImGui: fix event handling.
...
1) always pass events to ImGui
2) only pass keyboards to AW when ImGui says so
2021-02-23 19:32:00 +00:00
Andrea Odetti
d9c6541f73
Inspired from https://github.com/audetto/AppleWin/pull/25
...
Add menubar to toggle demo and setting window.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-21 18:43:46 +00:00
Andrea Odetti
3e5a6aa520
Extend geometry arg to WxH(+X+Y).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-20 15:21:53 +00:00
Andrea Odetti
3051fbe3fe
Make ClearBackground a standalone function.
...
Guidelines suggest to always clear background each frame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:21 +00:00
Andrea Odetti
d912026f3e
Add options to specify SDL window size via cmd line arguments.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:06 +00:00
Andrea Odetti
b204dc5362
Split glTexImage2D and update via glTexSubImage2D.
...
From the doc, it might allow for better performance.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:55:32 +00:00
Andrea Odetti
c2fab20d0c
Make the volume slider work.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 19:55:11 +00:00
Andrea Odetti
dc9bd91f84
Add some more ImGui example settings.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 19:23:33 +00:00
Andrea Odetti
7865fc3457
First meaningful usage of ImGui features.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 16:10:54 +00:00
Andrea Odetti
53a6928991
Display Dear ImGui version.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 17:09:06 +00:00
Andrea Odetti
a3381bfcb6
Define ImTextureID in main config file.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:41 +00:00
Andrea Odetti
989410c17d
Integrate Dear ImGui with SDL to reduce code duplication.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:08 +00:00