rw-r-r-0644
a1fe555cad
wiiu: Add more renderer function, make functions non-static, start adding new shaders
2019-04-29 22:55:55 +10:00
Ash
d120ddd096
wiiu/render: move drawing functions to own file
2019-04-29 22:55:55 +10:00
rw-r-r-0644
273e19c2ce
wiiu/render: Implement UpdateTexture/RenderClear
2019-04-29 22:55:55 +10:00
Ash
4fa755d52f
wiiu/render: Stub UpdateViewport / UpdateClipRect
2019-04-29 22:55:55 +10:00
Ash
084e2b9efb
wiiu/render: Implement SDL_LockTexture and SDL_UnlockTexture
2019-04-29 22:55:55 +10:00
Ash
a01adf4e00
wiiu/render: Remove optional SetTextureMod functions
2019-04-29 22:55:55 +10:00
Ash
e5fae70caf
wiiu/render: Move texture-related functions to own file
2019-04-29 22:55:55 +10:00
Ash
0949442d7a
wiiu/render: Implement GetOutputSize
2019-04-29 22:55:55 +10:00
Ash
03826edb25
wiiu/render: move window-related functions to own file
2019-04-29 22:55:55 +10:00
Ash
cea1907155
wiiu/render: consolidate calls to SetRenderTarget, minor tweaks
2019-04-29 22:55:55 +10:00
Ash
c337fd57f5
wiiu/render: Move function sigs and definitions to dedicated header
2019-04-29 22:55:55 +10:00
Ash
036b864413
wiiu/render: Minor formatting, move windowdata to header
2019-04-29 22:55:55 +10:00
Ash
72a32e7ed4
wiiu/video: move window data to header
2019-04-29 22:55:55 +10:00
Ash
162447e20b
wiiu: render: Be consistent about tabs/spaces
2019-04-29 22:55:55 +10:00
rw-r-r-0644
53fd78a2fb
wiiu: Implement more renderer functions (1)
2019-04-29 22:55:55 +10:00
rw-r-r-0644
7850c3e054
wiiu: Start implementing SDL_Renderer
2019-04-29 22:55:55 +10:00
rw-r-r-0644
5ab6c7a9d7
wiiu: switch to tpNormal, tpFiltered1 casues scrolling issues
2019-04-29 22:55:55 +10:00
rw-r-r-0644
541c794cd2
wiiu: Disable DRC surround mode as it causes distortion
2019-04-29 22:55:55 +10:00
Ash
9b21f4847e
video: Respect application's requested window size/position
2019-04-29 22:55:55 +10:00
Ash
4846a24b0c
video: move position buffer filling to UpdateWindowFramebuffer
2019-04-29 22:55:55 +10:00
Ash
c6ab8408cb
video: oops
2019-04-29 22:55:55 +10:00
Ash
60d802857d
video: Style nits
2019-04-29 22:55:55 +10:00
Ash
a7da7f77b1
video: start refactoring - move rendering to own function
2019-04-29 22:55:55 +10:00
Ash
ec7653a805
audio: DCFlushRange -> DCStoreRange
2019-04-29 22:55:55 +10:00
Ash
fb5bfa0a57
audio: Send voice to TV
2019-04-29 22:55:55 +10:00
Ash
bfb51a0f00
audio: Add *very* early wiiu audio support
2019-04-29 22:55:54 +10:00
rw-r-r-0644
70f923cc91
input/wiiu: switch back to VPADGetTPCalibratedPoint
2019-04-29 22:55:54 +10:00
rw-r-r-0644
30a8901587
threads/wiiu: fix crash on SDL_SYS_CreateThread: pass stack top and not stack bottom
2019-04-29 22:55:54 +10:00
rw-r-r-0644
6ea16de7c6
threads/wiiu: remove unused SDL_mutex structure definition and only build when requested
2019-04-29 22:55:54 +10:00
rw-r-r-0644
189846753c
threads/wiiu: implement SDL_CondWaitTimeout
2019-04-29 22:55:54 +10:00
rw-r-r-0644
30b0133f83
threads/wiiu: add sysmutex_c.h header
2019-04-29 22:55:54 +10:00
rw-r-r-0644
5554ca04a8
threads/wiiu: add generic thread storage
2019-04-29 22:55:54 +10:00
rw-r-r-0644
494e81f4a9
threads/wiiu: add semaphores
2019-04-29 22:55:54 +10:00
rw-r-r-0644
bbb8f558cc
wiiu/input: Use raw for touchscreen and check for VPADRead errors
2019-04-29 22:55:54 +10:00
rw-r-r-0644
cbefaaa74a
Rewrite wiiu joystick driver to better match switch's and add touchscreen support
2019-04-29 22:55:54 +10:00
rw-r-r-0644
856e271d2a
Do not send SDL_QUIT from WIIU_PumpEvents: it causes crashes and isn't the right way to do it
2019-04-29 22:55:54 +10:00
rw-r-r-0644
5d221e72f1
Change shader include guard to match SDL
2019-04-29 22:55:54 +10:00
rw-r-r-0644
9b777c083d
Switch to GX2!! (thanks to exjam for his help and toolchain and aliaspider for his shader!)
2019-04-29 22:55:54 +10:00
rw-r-r-0644
572c0e4021
Initial support for Nintendo WiiU
2019-04-29 22:55:53 +10:00
Sam Lantinga
0efec8ac7a
Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases
...
Sylvain
Re-opening this issue.
It fixes the test-case, but it introduces a regression with another bug (bug #4313 ).
So here's a new patch that activate cropping of the source surface to solve the issue.
It also reverts the wrong changeset.
It prevents unneeded colorkey error message.
2018-10-30 07:00:03 -07:00
Ryan C. Gordon
cea92252b1
winmain: Patched to compile on C89 compilers.
2018-10-29 20:18:50 -04:00
Ryan C. Gordon
4add225d98
winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).
...
Otherwise, we are using the allocator before the app can set up its own hooks.
Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses
SDL_malloc, too!) to get ready to call into SDL_main.
This also makes console_wmain() call into the same routines as everything
else, so we don't have to deal with those allocations, too. Hopefully we
end up with the same results from GetCommandLine() as we do in wargv.
Fixes Bugzilla #4340 .
2018-10-29 20:00:03 -04:00
Michał Janiszewski
e4a84752cb
Add and update include guards
...
Include guards in most changed files were missing, I added them keeping
the same style as other SDL files. In some cases I moved the include
guards around to be the first thing the header has to take advantage of
any possible improvements compiler may have for inclusion guards.
2018-10-28 21:36:48 +01:00
Sam Lantinga
b8ffbe177a
This change looks okay in the general case.
...
If we run into problems where these events aren't dispatched (initialized on a different thread than the main thread?) we may need to create a separate thread to handle device notifications like we do with the windows joystick subsystem.
2018-10-26 20:20:28 -07:00
Ryan C. Gordon
a404e5056f
hidapi: Don't run a separate event loop for device notifications.
...
Fixes Bugzilla #4286 .
2018-10-26 14:43:39 -04:00
Sam Lantinga
e6472f3cb3
Don't build SDL_JOYSTICK_HIDAPI by default on iOS
...
If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist:
<key>NSBluetoothPeripheralUsageDescription</key>
<string>MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app.</string>
2018-10-26 09:27:31 -07:00
Sam Lantinga
da9d1fdad4
Generalized the XInput user index into a player index
2018-10-25 16:53:14 -07:00
Sam Lantinga
67832fdf10
Fixed initializing XInput user index
2018-10-25 13:22:34 -07:00
Sam Lantinga
e8f3a27057
Added SDL_JoystickGetXInputUserIndex()
2018-10-25 12:54:42 -07:00
Sam Lantinga
95bd760475
Added vi style for the Emscripten joystick code
2018-10-25 12:54:39 -07:00