Commit Graph

11466 Commits

Author SHA1 Message Date
Ash Logan
e0744aa0a5 render/wiiu: Reset context state, make an attempt at supporting viewport 2020-01-06 13:03:05 +11:00
Ash Logan
f4724e1e0a render/wiiu: forgot QueueFillRects 2020-01-05 17:13:12 +11:00
Ash Logan
2603d95b8b joystick/wiiu: Minor 2.0.10 API fix 2020-01-05 16:59:23 +11:00
Ash Logan
5aa8fa2bfd render/wiiu: first-draft conversion to 2.0.10 API 2020-01-05 16:33:01 +11:00
Ash Logan
e3577aed1f render/wiiu: Convert Copy for 2.0.10 API 2020-01-05 15:30:18 +11:00
Ash Logan
18f1ca9183 render/wiiu: Tentativley convert CopyEx for SDL 2.0.10 API 2020-01-05 15:29:35 +11:00
Ash Logan
104babca0a render/wiiu: respect SDL_RENDERER_PRESENTVSYNC 2020-01-05 14:22:18 +11:00
Ash Logan
a7e75cf5e0 cmake: Don't link against stub libraries 2020-01-05 14:22:18 +11:00
Ash Logan
c8bfe54794 audio/wiiu: Add maps for mono and stereo audio 2020-01-05 14:22:18 +11:00
Ash Logan
e82e196640 joystick/wiiu: Add player index support 2020-01-05 14:22:18 +11:00
rw-r-r-0644
4d63dce2fc audio/wiiu: FIx right audio channel
The deinterleaving algorithm ended up overwriting the first half of the right channel buffer
2020-01-05 14:22:18 +11:00
Ash Logan
51358005a7 audio/wiiu: Attempt to make stereo become n-channel (broken)
This does something odd with the right channel and it sounds wrong
2020-01-05 14:22:18 +11:00
Ash Logan
55a4b23f6d audio/wiiu: (very) early stereo implementation
-Remove calculations relying on buffer size instead of sample count
- Add some temp code to deinterleave on the CPU
- Add a crap solution - voice_r. Really should be an array of voices, 
gimme some time for that
2020-01-05 14:22:18 +11:00
Ash Logan
053d5de716 audio/wiiu: Properly initialise AXVoiceDeviceMixData
(fixes odd behaviour when surround sound is enabled, hopefully)
2020-01-05 14:22:18 +11:00
rw-r-r-0644
f8e01ec884 Update build instructions 2020-01-05 14:22:18 +11:00
Ash Logan
113d9f03ab joystick/wiiu: Add support for WPAD/KPAD controllers 2020-01-05 14:22:18 +11:00
Ash Logan
1a7476ef3a joystick/wiiu bugfix: Don't hardcode Gamepad device_index to 0 2020-01-05 14:22:18 +11:00
Ash Logan
3775f25c9a joystick/wiiu: Hotplug support (gamepad only) 2020-01-05 14:22:18 +11:00
Ash Logan
32cf850bf0 big oops: missed a merge conflict on 2.0.9 2020-01-05 14:22:18 +11:00
Ash Logan
aa7d4aed69 cmake: Update SDL_LIBS so pkg-config pulls in needed Cafe libs 2020-01-05 14:22:18 +11:00
rw-r-r-0644
40dc6dc95d render/wiiu: Fix scaling mode for windowTex
Previously the driver would always end up using point scaling as the final windows texture scaling mode and thus the screen output
2020-01-05 14:22:18 +11:00
rw-r-r-0644
9b9742c326 render/wiiu: Allocate normal textures from MEM2
MEM1 fills up very quickly and soon runs out of space for apps with many textures
2020-01-05 14:22:18 +11:00
rw-r-r-0644
b569af04be render/wiiu: DestroyRenderer: Wait for the rendering to finish and free texture draw data 2020-01-05 14:22:18 +11:00
rw-r-r-0644
929b919ba3 render/wiiu: Free render data after calling GX2DrawDone 2020-01-05 14:22:18 +11:00
rw-r-r-0644
c54b09218e render/wiiu: Reintroduce check removed with fd92b81 to fix crashes 2020-01-05 14:22:18 +11:00
rw-r-r-0644
ab5712fc49 render/wiiu: Fix the remaining graphical glitches! 2020-01-05 14:22:18 +11:00
rw-r-r-0644
0788c76dc7 render/wiiu: Code cleanup
* Remove unused functions
* Remove unneeded checks
* Uniform coding style with the rest of SDL
2020-01-05 14:22:18 +11:00
rw-r-r-0644
688b6c7ad5 render/wiiu: Use WIIU_FreeRenderData in DestroyRenderer 2020-01-05 14:22:18 +11:00
rw-r-r-0644
a0893ef867 render/wiiu: Update RenderReadPixels to lock the surface and use the correct texture format 2020-01-05 14:22:18 +11:00
rw-r-r-0644
953e9bf345 render/wiiu: Fix compiler warnings 2020-01-05 14:22:18 +11:00
rw-r-r-0644
2aa1d1449c render/wiiu: Reduce GX2SetContextState calls
The function takes a fairly long time to complete
2020-01-05 14:22:18 +11:00
rw-r-r-0644
e8a1980928 render/wiiu: Disable blending for render_scene 2020-01-05 14:22:18 +11:00
rw-r-r-0644
72e6ac1b50 render/wiiu: Implement SetTextureColorMod/SetTextureAlphaMod 2020-01-05 14:22:18 +11:00
rw-r-r-0644
1109202dc2 render/wiiu: Use vec* for u_texSize and u_viewSize 2020-01-05 14:22:18 +11:00
Ash Logan
04111147f6 render/wiiu: Re-set context state after a clear
whb does this, so y'know
2020-01-05 14:22:18 +11:00
Ash Logan
9e6152080c render/wiiu: Textures keep their own colour buffers 2020-01-05 14:22:18 +11:00
Ash Logan
af78d34083 render/wiiu: Use point scaling by default
see https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY
2020-01-05 14:22:18 +11:00
Ash Logan
1a7d79b46e video/wiiu: Add support for DRC/TV only windows (#1) 2020-01-05 14:22:18 +11:00
Kuruyia
7a31ec844a video/wiiu: Add flags to only draw on TV or Gamepad (#1) 2020-01-05 14:22:18 +11:00
rw-r-r-0644
d30fd88b77 Edit README for the wiiu port 2020-01-05 14:22:18 +11:00
rw-r-r-0644
c160e55a82 input/wiiu: Clear last_touched after sending touch release event 2020-01-05 14:22:18 +11:00
Ash Logan
616a93634f render/wiiu: Use vec* for FillRects (fixes no-draw bug) 2020-01-05 14:22:18 +11:00
Ash Logan
7c1ebcdbd4 render/wiiu: Fix present position/texcoord confusion 2020-01-05 14:22:18 +11:00
Ash Logan
0f47f81260 render/wiiu: Respect window sizes 2020-01-05 14:22:18 +11:00
Ash Logan
9ce6ef0464 render/wiiu: Handle window size changes 2020-01-05 14:22:18 +11:00
Ash Logan
abbc3da5d3 render/wiiu: readability - introduce vec* structs for drawing 2020-01-05 14:22:18 +11:00
Ash Logan
eae53e605a render/wiiu: Fix resource flags on texture creation 2020-01-05 14:22:18 +11:00
Ash Logan
d2631312da render/wiiu: Convert RenderData to use GX2RBuffers 2020-01-05 14:22:18 +11:00
Ash Logan
954d641488 render/wiiu: Use GX2R for texture surfaces
Untested at time of commit, hopefully it works hehe
2020-01-05 14:22:18 +11:00
Ash Logan
18861640f1 video/wiiu: Remove the last of the emulated framebuffer 2020-01-05 14:22:18 +11:00