Commit graph

2166 commits

Author SHA1 Message Date
Clownacy
d7c138f818 More error-handling 2020-04-23 14:33:59 +01:00
Clownacy
1f9247e587 Cleanup and extra error-handling 2020-04-23 14:31:19 +01:00
Clownacy
ee1d777ebb ...Actually do what the last commit said 2020-04-23 13:41:24 +01:00
Clownacy
a2cdd9ac18 Allow surfaces to be marked as not-render-targets
The Wii U has a very limited pool of memory for render targets
(32MB), so we should only use it if we have to.

This 'fixes' a bug in the enhanced branch, where if you use 2x
sprites at 854x480, the third line of the text box will be corrupted
(text will appear on the second line instead, and be black instead of
white).

The other renderers haven't been updated for the API change yet.
2020-04-23 13:23:10 +01:00
Clownacy
ebb96ad239 Cleanup 2020-04-22 01:50:31 +01:00
Clownacy
4752423ff3 Use pitch 2020-04-22 01:46:48 +01:00
Clownacy
0421a7ca54 Wii U: Glyphs don't use colour-buffers 2020-04-22 01:08:31 +01:00
Clownacy
6bdb406940 Also consistency with enhanced branch 2020-04-22 00:14:08 +01:00
Clownacy
f006508232 Sanity check 2020-04-22 00:13:54 +01:00
Clownacy
6a00057469 Do not stream bitmaps
Again - Wii U SD card IO is terrible, so load the whole file at
once instead.
2020-04-21 23:57:07 +01:00
Clownacy
abdd7fc771 Add missing case for Wii U screen size
My Wii U always uses this value
2020-04-21 23:53:37 +01:00
Clownacy
17fb47bce8 Correct typo 2020-04-21 22:27:13 +01:00
Clownacy
e1779248d9 Add error-prints to Wii U renderer 2020-04-21 22:22:00 +01:00
Clownacy
c454f4426d Wii U: Implemented Backend_PrintError & co. 2020-04-21 22:16:07 +01:00
Clownacy
a12e971509 Make Wii U software renderer support any res 2020-04-21 18:45:58 +01:00
Clownacy
31cd840297 Fix Wii U software renderer 2020-04-21 18:45:52 +01:00
Clownacy
bc7b078df5 Make Wii U renderer support non 4:3 aspect ratios 2020-04-21 17:58:24 +01:00
Clownacy
caa00c9a6b Update shader formulas 2020-04-21 16:48:31 +01:00
Clownacy
b4d9b15a9c Add a TODO 2020-04-21 15:23:20 +01:00
Clownacy
bfc2d4e326 ...Maybe I should test my fixes before commit 2020-04-21 14:59:05 +01:00
Clownacy
ff9c2dc4fc Remove now-unneeded sanity checks 2020-04-21 14:57:05 +01:00
Clownacy
afb3c834a7 Do not draw sprites with backwards/empty RECTs
Previously, each backend had to guard against it, which is messy,
results in duplication, and leaves new backends open to the risk
of not guarding against it (the Wii U GX2 renderer didn't).
2020-04-21 14:54:29 +01:00
Clownacy
f55450d141 Rename WiiU.cpp to WiiU-Hardware.cpp 2020-04-21 14:27:15 +01:00
Clownacy
5cc1d5ac01 Update CMake options and readme 2020-04-21 14:26:06 +01:00
Clownacy
7261106be8 Wii U: Swap X and Y buttons 2020-04-21 14:03:43 +01:00
Clownacy
11b5fd88c5 Wii U: Use linear-filtering on the screen texture
Makes the font looks less terrible (on 720p TVs, anyway).
2020-04-21 13:59:47 +01:00
Clownacy
a2b272fdf7 Address a TODO, and do some cleanup 2020-04-21 13:58:20 +01:00
Clownacy
b2a0ad089f Move Wii U shaders 2020-04-21 13:02:06 +01:00
Clownacy
5b636ccc24 Cleanup 2020-04-21 13:00:34 +01:00
Clownacy
0aba8888bb Wii U: Update colour in PrepareToDrawGlyphs 2020-04-21 12:58:31 +01:00
Clownacy
90f729158a Wii U: Store glyph texture in R8 format 2020-04-21 12:56:14 +01:00
Clownacy
69e0d868a0 Added font rendering to Wii U 2020-04-21 12:45:37 +01:00
Clownacy
00792413f8 Cleanup 2020-04-21 03:34:59 +01:00
Clownacy
e687c502a9 Cleanup 2020-04-21 03:22:22 +01:00
Clownacy
4d2a227068 Add render-to-texture support to Wii U renderer 2020-04-21 03:16:37 +01:00
Clownacy
8377f011cf Add in-progress hardware Wii U renderer
*Very* incomplete. Right now, it can render textures and perform
colour-fills to the screen.
2020-04-21 00:59:12 +01:00
Clownacy
e40de4992f Wii U cleanup 2020-04-20 14:54:31 +01:00
Clownacy
24d8f318e5 Merge branch 'accurate' into portable 2020-04-20 13:08:51 +01:00
Clownacy
46ca9b4d4a aesthetic 2020-04-20 13:08:12 +01:00
Clownacy
5d309db3ad Ignore ConfigCSE2E.dat 2020-04-20 13:07:37 +01:00
Clownacy
dec481a8e0 And another 2020-04-20 13:05:21 +01:00
Clownacy
57c5879650 Add more files to .gitignore 2020-04-20 13:04:17 +01:00
Clownacy
7450952a24 Add a list of supported platforms 2020-04-20 12:58:05 +01:00
Clownacy
cb46112657 Note default options 2020-04-20 12:54:19 +01:00
Clownacy
e6f3a82634 Clean-up readme option descriptions 2020-04-20 12:53:30 +01:00
Clownacy
bcfcf2c017 Rename 'BUILD_DOCONFIG' to just 'DOCONFIG' 2020-04-20 12:50:53 +01:00
Clownacy
2978db4d30 More cleanup 2020-04-20 12:48:42 +01:00
Clownacy
2f7db28da8 Wii U backend cleanup 2020-04-20 12:46:36 +01:00
Clownacy
5ca12ae22a Tweak Wii U coordinates 2020-04-20 12:42:50 +01:00
Clownacy
65b470ba20 It seems we don't need the colour-buffer (Wii U) 2020-04-20 12:39:55 +01:00