Clownacy
2a73c12a5f
3DS cleanup
2020-10-11 15:17:00 +01:00
Clownacy
c398ec7c25
Cleanup and enable New3DS speedup
2020-10-11 14:42:27 +01:00
Clownacy
80725016f7
Add mutexes to 3DS audio backend
...
Doesn't seem to fix the annoying crashes though...
2020-10-11 14:42:04 +01:00
Clownacy
75a31005d1
Add basic 3DS audio support
...
It's using the software mixer for now. I might be able to make it
hardware-accelerated in the future.
2020-10-11 14:27:39 +01:00
Clownacy
7013c28e26
Remove an unnecessary newline
2020-10-11 14:27:10 +01:00
Clownacy
5597245865
Optimise 3DS rendering a little
...
Double-buffering is enabled by default, and I don't need to flush
every single buffer.
2020-10-11 14:26:15 +01:00
Clownacy
10c4831160
Better 3DS debug logging and fix console output
...
Was using the wrong screen
2020-10-11 14:25:48 +01:00
Clownacy
f5b3b2e0d0
Add a basic 3DS port
...
Was a lot easier than I expected. The software renderer is such a
godsend for quick-and-dirty ports.
Oddly enough, even on an old3DS, this actually almost runs at full
speed (hits around 40FPS in Mimiga Village).
There's a lot of work left to do before this is actually useable:
* There's no audio
* You can't save
* A proper hardware-accelerated renderer is needed
2020-10-11 00:09:22 +01:00
Clownacy
49027c4ab7
Minor comment cleanup
2020-10-10 20:40:57 +01:00
Clownacy
12b7990cf9
Wii U: Fix usage of wrong shader
2020-10-04 21:00:38 +01:00
Clownacy
8eb4e29b10
Remove needless parameter
2020-10-04 13:56:43 +01:00
Clownacy
ce6e4e2a32
Add Wii U smooth framebuffer upscaling
2020-10-04 13:51:16 +01:00
Clownacy
30ec081d7b
Refactor Wii U renderer in preparation
...
This is in preparation for an upscaled-framebuffer system like the
OpenGL backend has.
I wonder if it's possible to just use a shader instead, and avoid the
need for an upscaled framebuffer to make the linear filtering not
look terrible.
2020-10-04 13:00:22 +01:00
Clownacy
385b7531ef
Remove leftover files I was using for testing
2020-10-04 00:47:55 +01:00
Clownacy
914034c406
Remove unused variable
2020-10-04 00:39:07 +01:00
Clownacy
771f83d06a
Fix the 'Studio Pixel Presents' text on Wii U
...
The vertex buffer was being deleted and recreated *after* it was
binded.
2020-10-04 00:37:49 +01:00
Clownacy
4b2a14167e
Wii U shader fixes
...
I don't know what bugs, if any, these fix
2020-10-03 22:29:13 +01:00
Clownacy
9458d2aea7
Avoid some duplicate code in Wii U flush function
2020-10-03 21:01:36 +01:00
Clownacy
6803438358
Fix Wii U using an uninitialised vertex buffer
2020-10-03 18:35:40 +01:00
Clownacy
c7cd67c410
Remove another useless variable
2020-10-03 16:11:58 +01:00
Clownacy
858fd0beb9
Fix Backend_EnableDragAndDrop not matching header
2020-10-03 16:10:34 +01:00
Clownacy
076a477239
Remove useless variable
2020-10-03 16:09:22 +01:00
Clownacy
9a5ac1606d
Correct a typo
2020-09-30 21:18:59 +01:00
Clownacy
ad5785611b
Change a float literal to double
2020-09-27 19:31:23 +01:00
Clownacy
35bf490f0d
Fix GLFW3 build error
...
Great API...
2020-09-27 17:51:16 +01:00
Clownacy
baf88b0d4b
Convert cursors to RGBA
...
...instead of colour-keyed RGB. Less goofing-around for the user.
2020-09-27 17:16:58 +01:00
Clownacy
b7e25cd9be
Wii U renderer cleanup
2020-09-27 17:16:58 +01:00
Clownacy
dad9dd6421
Correct oversized OpenGL upscaled framebuffer
2020-09-26 23:19:17 +01:00
Clownacy
530dab7bab
Update Wii U shader files
2020-09-23 19:56:50 +01:00
Clownacy
87da82a500
Wii U: Offload vertex transformation to GPU
2020-09-23 19:55:45 +01:00
Clownacy
663870ae76
Wii U: Offload tex-coord transformation to GPU
2020-09-23 19:05:01 +01:00
Clownacy
6b8ffe2886
More-efficient Wii U glyph fragment shader
2020-09-23 18:03:36 +01:00
Clownacy
45f2032c9a
Modernise how Wii U shaders are included
...
Uses newer bin2h. I would be nice if this process were automated...
2020-09-23 17:53:49 +01:00
Clownacy
006091305e
Fix an inconsistency
2020-09-23 17:08:07 +01:00
Clownacy
0103f2696b
Better way to handle Wii U screen viewports
2020-09-23 17:07:26 +01:00
Clownacy
42f12c18d9
Wii U integer-only viewport calculation
2020-09-23 16:57:36 +01:00
Clownacy
eac417cdc1
I guess I figured out what the GX2 context is for
2020-09-23 16:52:42 +01:00
Clownacy
1eb1e522c8
Clarify an odd design choice
2020-09-19 21:55:40 +01:00
Clownacy
a8bcf5a6fb
Orphan vertex buffers for improved performance
...
Bump my Raspberry Pi 3B+ from 100FPS to 120FPS.
2020-09-19 21:50:20 +01:00
Clownacy
9a990d6fa7
Correct some code indentation
2020-09-19 15:07:44 +01:00
Clownacy
5c1012aa8e
Fix upscaled framebuffer skipping
...
Skipping it an 1x is wrong: it should only be skipped if the window
is an integer multiple of the framebuffer size
2020-09-18 21:21:28 +01:00
Clownacy
4763aecdbd
Correct Lanczos array initialisation
...
I must have forgotten that Lanczos reads backwards too
2020-09-18 00:59:05 +01:00
Clownacy
83e8320d84
Fix other renderers
2020-09-17 18:26:32 +01:00
Clownacy
5c6b71e3a1
Optimise a little when using OpenGL3
2020-09-17 18:22:44 +01:00
Clownacy
b8ceefcefd
Flexible OpenGL unpack alignment
2020-09-17 18:05:38 +01:00
Clownacy
86d084f750
Get OpenGL renderers working again
2020-09-17 17:39:02 +01:00
Clownacy
fe76fe6dea
Big scary messy unfinished font overhaul
...
This is currently hardcoded to 640x480 English builds.
What I've done is temporarily gutted the FreeType2 font renderer, and
instead introduced a system where the font is read from a
pre-rendered font atlas. This allows me to get 100% accurate font
rendering to Windows XP... because I literally created these atlases
with Windows XP.
So not only does this eliminate the issue of FreeType producing
misshapen glyphs, but it also works around the copyright issue
regarding bundling the Courier New and MS Gothic fonts with CSE2.
You see, font files can be copyrighted like any old software, however
typefaces have a lot less protection - they're basically fair-game.
IANAL, of course - look it up yourself.
I don't really want to throw away the FreeType font system since I
spent a ton of time working on it, it allows you to use other font
files, and I'll probably wind up needing it for CSE2EX. I guess I'll
just have to find some way to either have the two systems coexist, or
make it so one or the other can be selected at compile-time.
2020-09-17 15:02:36 +01:00
Clownacy
08b14fa03f
Don't use upscaled framebufer if it's not needed
...
This matches the SDLTexture backend.
Again, it would be really nice if this code weren't duplicated.
2020-09-15 22:16:05 +01:00
Clownacy
97d5373fa5
Add smooth upscaling to the OpenGL backends
...
Bleh, this is kind of messy and ugly. I also don't like how much
duplicate code there is from the SDLTexture backend.
2020-09-15 22:05:58 +01:00
Clownacy
fd82adf099
Remove invalid comment
2020-09-15 21:00:27 +01:00