Commit Graph

10823 Commits

Author SHA1 Message Date
Ash Logan
56088fbaf2 video/wiiu: Start adding "events" stuff 2019-01-03 09:38:17 +11:00
Ash
817cf209ec render/wiiu: Safety checks on SDL_DestroyTexture 2018-11-06 19:01:04 +01:00
rw-r-r-0644
171ffff85b wiiu/shaders: Add shader source code + basic regenerate script 2018-11-06 17:55:40 +01:00
rw-r-r-0644
ec3aa15a51 Merge branch 'master' of https://github.com/SDL-mirror/SDL into wiiu 2018-10-30 22:18:32 +01:00
rw-r-r-0644
c73c8e1b55 wiiu: Switch to cmake 2018-10-30 22:04:29 +01:00
rw-r-r-0644
4f6df9e35f wiiu/joystick: Updates for the new joystick interfaces 2018-10-30 21:58:51 +01:00
Sam Lantinga
e24a00fa7e Backed out changeset 9bb50edccc46, SDL_JOYSTICK_HIDAPI is only used on iOS for Steam Controller support, which is not publicly available. 2018-10-29 19:58:59 -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
Ryan C. Gordon
ac3ed1ef93 README-ios: added a note about enabling hidapi. 2018-10-29 15:51:38 -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
e84cf33c51 Fixed bug 4335 - Android NDK build error
dmuratshin

LOCAL_SRC_FILES shouldn't use $(LOCAL_PATH)
2018-10-28 14:17:21 -07:00
rw-r-r-0644
942e94dd8c wiiu: Updates for newer SDL 2018-10-28 19:41:37 +01:00
rw-r-r-0644
dc1e294bea wiiu: Edit config comment to prevent gcc warning 2018-10-28 19:24:11 +01:00
rw-r-r-0644
c91682105a wiiu/render: Temporaneously disable formats other than RGBA8888 until the cause of bad colors is found 2018-10-28 19:24:11 +01:00
rw-r-r-0644
93bfdf30ea wiiu/render: Enable alpha merge/other settings 2018-10-28 19:24:11 +01:00
rw-r-r-0644
ebd77fab8d wiiu: Move coordinates math to shader 2018-10-28 19:24:11 +01:00
rw-r-r-0644
7dd2f78f8d wiiu/render: Fix final bugs; it partially works now \o/ 2018-10-28 19:24:11 +01:00
rw-r-r-0644
f8960f4b79 wiiu/render: Fix GX2ContextState alignment 2018-10-28 19:24:11 +01:00
rw-r-r-0644
0956a4fa49 wiiu/video: Add more attributes for texture 2018-10-28 19:24:11 +01:00
rw-r-r-0644
0702710a88 wiiu/render: SDL_GetWindowSurface is needed to create the framebuffer 2018-10-28 19:24:11 +01:00
rw-r-r-0644
20d9410195 wiiu: Linking fixes 2018-10-28 19:24:11 +01:00
rw-r-r-0644
3ad7fe8bf5 render/wiiu: Fix compiling, implement RenderCopyEx, make some render vars unique for objects, add missing shaders 2018-10-28 19:24:11 +01:00
Ash
5da69bc6a8 render/wiiu: Start fixing up missing headers 2018-10-28 19:24:11 +01:00
Ash
b603797119 render: Start compiling the wiiu renderer (lotsa errors) 2018-10-28 19:24:11 +01:00
rw-r-r-0644
29b39d3bd2 wiiu: Add more renderer function, make functions non-static, start adding new shaders 2018-10-28 19:24:11 +01:00
Ash
ce27b8a9ce wiiu/render: move drawing functions to own file 2018-10-28 19:24:11 +01:00
rw-r-r-0644
613782b555 wiiu/render: Implement UpdateTexture/RenderClear 2018-10-28 19:24:11 +01:00
Ash
1af6a4264f wiiu/render: Stub UpdateViewport / UpdateClipRect 2018-10-28 19:24:11 +01:00
Ash
e6c607d618 wiiu/render: Implement SDL_LockTexture and SDL_UnlockTexture 2018-10-28 19:24:11 +01:00
Ash
d2025fbc18 wiiu/render: Remove optional SetTextureMod functions 2018-10-28 19:24:11 +01:00
Ash
8e3d8a6b25 wiiu/render: Move texture-related functions to own file 2018-10-28 19:24:11 +01:00
Ash
1b87845293 wiiu/render: Implement GetOutputSize 2018-10-28 19:24:11 +01:00
Ash
ecbfa0c1b9 wiiu/render: move window-related functions to own file 2018-10-28 19:24:11 +01:00
Ash
e49e2147bd wiiu/render: consolidate calls to SetRenderTarget, minor tweaks 2018-10-28 19:24:11 +01:00
Ash
857618642b wiiu/render: Move function sigs and definitions to dedicated header 2018-10-28 19:24:11 +01:00
Ash
faf8be94a1 wiiu/render: Minor formatting, move windowdata to header 2018-10-28 19:24:11 +01:00
Ash
0d2c19e532 wiiu/video: move window data to header 2018-10-28 19:24:11 +01:00
Ash
94d20b0d15 wiiu: render: Be consistent about tabs/spaces 2018-10-28 19:24:11 +01:00
rw-r-r-0644
8e49ad79ac wiiu: Implement more renderer functions (1) 2018-10-28 19:24:11 +01:00
rw-r-r-0644
f04c26a8db wiiu: Start implementing SDL_Renderer 2018-10-28 19:24:11 +01:00
rw-r-r-0644
176d00a8fb wiiu: switch to tpNormal, tpFiltered1 casues scrolling issues 2018-10-28 19:22:04 +01:00
rw-r-r-0644
d28a5bd9bc wiiu: Disable DRC surround mode as it causes distortion 2018-10-28 19:22:04 +01:00
Ash
a09bd44937 video: Respect application's requested window size/position 2018-10-28 19:22:04 +01:00
Ash
7e5c1cb6c5 video: move position buffer filling to UpdateWindowFramebuffer 2018-10-28 19:22:04 +01:00
Ash
d4e03b4f63 video: oops 2018-10-28 19:22:04 +01:00
Ash
1880c5eb19 video: Style nits 2018-10-28 19:22:04 +01:00
Ash
05a87f8b4c video: start refactoring - move rendering to own function 2018-10-28 19:20:38 +01:00
rw-r-r-0644
bffa382867 wiiu: switch to wut.mk 2018-10-28 19:20:38 +01:00
Ash
75b3d1d460 audio: DCFlushRange -> DCStoreRange 2018-10-28 19:20:38 +01:00