Aaron Culliney
261ae2efae
Refactor to not use video_backend in so many places
2016-02-07 14:42:32 -08:00
Aaron Culliney
edaae0bc89
Refactor glvideo to be the root glnode, begin to privatize video_backend APIs
2016-02-07 14:42:16 -08:00
Aaron Culliney
8f03d0ca6f
Enforce pointer index tracking for touch lifecycle
...
- Fixes glitch where GLTouchMenu would capture a joystick event if the movement came into its portion of the screen
- Prepares the way for allowing both keyboard and joystick access to same screen real-estate
2016-01-30 14:46:43 -08:00
Aaron Culliney
8626215205
Silence a number of spurious compiler warnings
...
- Existing warnings are now a good proxy for areas of code smell ;-)
2016-01-10 12:09:04 -08:00
Aaron Culliney
29282dcac6
Expose identity matrix and only calculate it once
2016-01-03 12:02:06 -08:00
Aaron Culliney
8b3f288018
Reduce duplicate OpenGL plumbing codepaths
...
- Apple //e "framebuffer" OpenGL model/texture is now a complete GLModel object
- Readability FTW! ... use args struct in quadCreation function to allow for named args
2016-01-02 13:39:07 -08:00
Aaron Culliney
7ca679350d
Move shader/program creation into video_util module
2016-01-02 11:33:47 -08:00
Aaron Culliney
abae59767c
Enable simple heap memory fencing/scribbling in debug builds
2015-12-31 22:50:43 -08:00
Aaron Culliney
33160be9ac
Disambiguate texture name from texture() function in basic fragment shader
2015-11-14 08:09:10 -08:00
Aaron Culliney
63b6e0a29a
Fix my blended rendering on Tegra 2 (and arguably globally)
2015-11-07 10:36:20 -08:00
Aaron Culliney
f423c2dbe6
Work around broken Tegra 2 GPU
2015-11-06 22:18:16 -08:00
Aaron Culliney
9b56050c1e
All the Broken Adrenos!
2015-11-02 20:46:16 -08:00
Aaron Culliney
84fe0dd479
Fix crash on Nexus 10 device due to regfree()ing something not regcomp()ed
2015-10-30 23:12:12 -07:00
Aaron Culliney
2cc23cf35d
Upgrade to GPLv3 "or later" and update copyrights
2015-10-22 21:09:13 -07:00
Aaron Culliney
f4fa5670b4
Add function-call time tracing for Linux/Android
2015-10-04 14:22:26 -07:00
Aaron Culliney
be797efce5
Remove some deadc0de
...
- No longer worrying about softkeyboard showing on mobile since we have a custom GL touch keyboard
- Move some stuff that is desktop-only to that codepath
2015-09-30 21:58:33 -07:00
Aaron Culliney
f7acde244c
Work around broken Adreno 200 GPU
...
- Rework checks to compare with POSIX Regexs ... which themselves appear broken with android-10 NDK ... sigh
2015-09-30 21:55:07 -07:00
Aaron Culliney
518738304f
Defensive coding around glGetString()
2015-09-27 14:29:10 -07:00
Aaron Culliney
e51aaa1695
Work around broken Adreno 200 GPU
2015-09-27 11:51:40 -07:00
Aaron Culliney
f627ccef3f
Fix n00b shader mistake (conditional code in shader) =D
2015-09-27 11:49:58 -07:00
Aaron Culliney
0321c27de6
Improve video cleanup codepaths from what I can discern are the OpenGL best practices for memory management
2015-09-12 15:06:06 -07:00
Aaron Culliney
ed60b2ea73
Refactor VM initialization and shutdown
2015-09-11 23:03:17 -07:00
Aaron Culliney
7ca4a2646d
Optimize video drawing and API cleanup
...
- Enforces synchronized access to video dirty bit
2015-07-12 14:13:13 -07:00
Aaron Culliney
edaa7be34f
Avoid segfaults and deadlocks in backgrounding/foregrounding on Android
2015-07-05 13:40:50 -07:00
Aaron Culliney
38813bb2a1
Revert "Avoid segfault in render thread on mobile shutdown codepath"
...
This reverts commit ddefceaf08
.
- need an additional boolean instead
2015-07-05 13:29:35 -07:00
Aaron Culliney
ddefceaf08
Avoid segfault in render thread on mobile shutdown codepath
2015-07-04 18:18:06 -07:00
Aaron Culliney
c4397123cb
Assert that there is only one backend renderer
2015-06-22 22:21:27 -07:00
Aaron Culliney
1da7acbaba
Properly hook up Android shutdown paths
2015-06-06 21:18:27 -07:00
Aaron Culliney
5773ef2e8d
Simplify touch menu to just one model/texture
...
- Also seamlessly complements gltouchkbd layout
2015-06-03 22:13:19 -07:00
Aaron Culliney
f2abf4ce35
Fix emulator quit path on Android
2015-06-01 22:50:44 -07:00
Aaron Culliney
80b880550f
Fix shutdown codepaths
...
- Ensures various shutdown codepaths (interface, cpu/audio, main/video, ...) run on proper thread(s)
- Actually now runs the CloseAL() code
- Try to ensure all detached threads exit ... seems to help keep Valgrind happy =)
2015-05-31 13:43:51 -07:00
Aaron Culliney
5816962f32
Make RGBA_4444 codepaths available to HUD models
2015-05-30 23:18:08 -07:00
Aaron Culliney
bcb36a4801
add codepath for RGBA_4444 textures
2015-05-30 18:58:34 -07:00
Aaron Culliney
68011fa8f2
First cut at touch menu HUD
...
- Enables choosing touch keyboard or touch joystick
- Enables increasing/decreasing speed
- Enables opening main popup menu
- Also migrates all gesture responsibility away from Java side of things
2015-05-09 19:23:52 -07:00
Aaron Culliney
4e23795cfd
First cut at GL touch keyboard
2015-04-22 23:32:36 -07:00
Aaron Culliney
dcd0207525
Fix ctor load priorities
2015-04-17 22:12:13 -07:00
Aaron Culliney
2bc846d1fe
Revert "Fix non-deterministic ctor load issues and use singleton for video_backend module access"
...
This reverts commit af95212a19
.
TODO : make ctor loads deterministic
2015-04-17 21:40:56 -07:00
Aaron Culliney
e2272132c2
Do not destroy OpenGL needful things for VAO codepath
...
- Gets Mac build rendering again
2015-04-16 21:53:44 -07:00
Aaron Culliney
af95212a19
Fix non-deterministic ctor load issues and use singleton for video_backend module access
2015-04-16 21:53:12 -07:00
Aaron Culliney
ca139ee94a
REFACTOR : glanimation rechristend, touch handling genericized
...
- 'animation' was too constrained a name to what these do, so switch to the overloaded term 'node' ;-)
- Touch handling is no longer the sole purview of the touchjoy, (in prep for touchable HUD elements)
2015-04-12 15:55:06 -07:00
Aaron Culliney
121e250c62
REFACTOR : GLModel render pass is common for HUD models
2015-04-12 11:27:33 -07:00
Aaron Culliney
e876cd03b6
REFACTOR : begin consolidating common code for OpenGL HUD interfaces
2015-04-11 11:42:18 -07:00
Aaron Culliney
5712850e84
REFACTOR : demoModel -> GLModel
2015-04-11 11:42:18 -07:00
Aaron Culliney
30236cb400
First cut at GL Touch Joystick
2015-04-01 19:59:38 -07:00
Aaron Culliney
af42dc36b2
Squashed commit of the following:
...
CPU speed animation touch-ups, and enable building for desktop
Rename/shuffle animation declarations and code
Refactor backend video system to be a dynamically initialized module
Basic CPU speed texture animation works on desktop Linux and Android
Use static pixel buffers to avoid malloc/free churn
Improve CPU animations
First cut at CPU speed message animation
Refactor some of the classic interface functions to be potentially reusable elsewhere
2015-03-22 18:53:13 -07:00
Aaron Culliney
e5fde057c9
Don't create new cpu_thread on app resume
2015-03-12 14:45:17 -07:00
Aaron Culliney
2965afe12e
Two-finger-touch pops up softkeyboard and adjusts GL viewport
2015-03-11 12:54:50 -07:00
Aaron Culliney
09ff973016
Work around lack of GLSL version string in older Android device(s)
2015-03-10 10:23:52 -07:00
Aaron Culliney
2855d15f9b
Get graphics working again on Mac and add another snide Android compiler warning =P
2015-03-10 10:22:47 -07:00
Aaron Culliney
c3969f9d1d
Fixes to get Android tests rendering
2015-02-24 20:53:19 -08:00