Clownacy
f4f85f1f9d
Add Null platform backend
...
Also does absolute nothing.
The point of these things is so it's easier to test out new ports.
For example, with the Null backends and the software renderer, we
don't need to write any code to build for other platforms.
In addition, by having no platform-dependant code, this can be used
to trace crashes. For example, I was having crashes on the Wii U,
despite there being no Wii U-specific code at all - the cause turned
out to be that the executable wasn't stripped, and it had nothing to
do with the code at all.
2020-04-13 18:54:34 +01:00
Clownacy
02f570cec7
Add Null audio backend
...
Literally doesn't do anything
2020-04-13 18:31:39 +01:00
Clownacy
c51a074fad
Big disgusting backend rework
...
We need to avoid `WindowsWrapper.h` in the backends whenever we can,
to avoid name collisions (the Wii U homebrew library) defines its own
BOOL/TRUE/FALSE, which really doesn't work with CSE2.
2020-04-13 18:19:39 +01:00
Clownacy
fd0733f6e7
Fix GLFW3 not handling exit event while not focussed
2020-04-13 15:32:34 +01:00
Clownacy
8549fa561e
Avoid WindowsWrapper.h in controller backend
2020-04-13 14:56:48 +01:00
Clownacy
026fea52ff
Untangle Input.cpp from the controller backend
2020-04-13 14:49:07 +01:00
Clownacy
58fc9a392a
More cleanup
2020-04-13 13:56:29 +01:00
Clownacy
aa9e486086
Handle WindowBackend_Software_CreateWindow fail
...
Must have been part of that commit I reverted
2020-04-13 13:49:21 +01:00
Clownacy
d70e31d221
Cleanup
2020-04-13 13:47:57 +01:00
Clownacy
cbb11e6270
Cleanup
2020-04-13 13:43:17 +01:00
Clownacy
8fbf3bbecf
Account for GetVertexBufferSlot failure
2020-04-13 13:40:35 +01:00
Clownacy
9275ad4689
This error should result in failure
2020-04-13 13:35:01 +01:00
Clownacy
cdd97cb733
Some cleanup
2020-04-13 13:34:55 +01:00
Clownacy
4f7cc9582d
Revert "Backends: Added init/de-init messages for backends"
...
This reverts commit 9be8b9a493
.
2020-04-13 13:28:57 +01:00
Clownacy
063ec2a92a
Merge pull request #111 from GabrielRavier/portableAddImprovedErrorHandlingBackends
...
Added improved error handling to Backend code
2020-04-13 13:27:04 +01:00
Gabriel Ravier
9be8b9a493
Backends: Added init/de-init messages for backends
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 02:26:51 +02:00
Gabriel Ravier
53e2b715d4
Backends/SDL2/Misc: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:19:35 +02:00
Gabriel Ravier
d0b8aef281
Backends/SDL2/Controller: !x
-> x == 0
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:18:19 +02:00
Gabriel Ravier
92d565692a
Backends: Use "SDL" instead of "SDL2" to match documentation vocabulary
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:16:45 +02:00
Gabriel Ravier
5ed34e73d4
Backends/Rendering/SDLTexture: Used Uint8
instead of uint8_t
to match SDL_SetRenderDrawColor
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:11:13 +02:00
Gabriel Ravier
4301fc613e
Backends/Rendering/SDLTexture: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:10:15 +02:00
Gabriel Ravier
9ad14b897e
Backends/Rendering/SDLTexture: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:09:30 +02:00
Gabriel Ravier
3f0d8b2e6f
Backends/SDL2/Window-Software: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:08:26 +02:00
Gabriel Ravier
b58cfcdd2f
Backends/SDL2/Window-Software: Removed un-needed braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:05:37 +02:00
Gabriel Ravier
d41bf46c1a
Backends/SDL2/Controller: x
-> x != NULL
and removed unnecessary braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:04:23 +02:00
Gabriel Ravier
d870805068
Backends/SDL2/Controller: x
-> x != NULL
and fixed unequal braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:03:18 +02:00
Gabriel Ravier
a763984486
Backends/Rendering/SDLSurface: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:01:38 +02:00
Gabriel Ravier
2feba10654
Backends/Rendering/SDLSurface: Invert if
and use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:00:44 +02:00
Gabriel Ravier
65e7164c42
Backends/Rendering/OpenGL3: Use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:59:02 +02:00
Gabriel Ravier
4d10c2cc21
Backends/Rendering/OpenGL3: Wrap both sides of if-else with {} equally.
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:58:09 +02:00
Gabriel Ravier
690a87dbfd
Backends/GLFW3/Controller: Wrap both sides of if-else with {} equally.
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:57:06 +02:00
Gabriel Ravier
77e00a9329
Backends/GLFW3/Controller: Use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:55:53 +02:00
Gabriel Ravier
1a5da443d7
Backends/Rendering/OpenGL3: Fixed OpenGLES2 compile
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:55:12 +02:00
Gabriel Ravier
27eb7d1788
Backend/Audio/SDL2: Replace puts
call with Backend_PrintInfo
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:49:22 +02:00
Gabriel Ravier
89fb2222b6
Backends/Rendering/OpenGL: Replaced printf with Backend_PrintInfo
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:46:05 +02:00
Gabriel Ravier
dcd4bcf1b2
Backends: Fix some of the error handling and replaced some printf calls
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:42:24 +02:00
Gabriel Ravier
5fc0f58525
Backends/SDL2: Finished up improving error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:24:30 +02:00
Gabriel Ravier
12d45ac1ed
Merge branch 'portable' into portableAddImprovedErrorHandlingBackends
2020-04-11 23:30:43 +02:00
Gabriel Ravier
4127efb8f8
Backends/SDL2/Controller: Start improving error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 23:29:49 +02:00
Gabriel Ravier
f2b2c071a2
Backends/Rendering/OpenGL3: Improve error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 23:28:31 +02:00
Clownacy
ba2f43bc67
Fix bug in SDL2 controller backend
2020-04-11 22:17:53 +01:00
Gabriel Ravier
b45412992b
external/glad: Used c-debug configuration in order to have extra debug utilities
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 21:40:55 +02:00
Gabriel Ravier
16441ee87b
Backends: Improved miniaudio and GLFW3 error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 16:57:04 +02:00
Gabriel Ravier
0bd968d78d
Backends/Rendering/SDLTexture: Finish up improved error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 02:06:25 +02:00
Gabriel Ravier
affb645526
Backends/Rendering/SDLTexture: Continued work on error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-10 23:19:57 +02:00
Gabriel Ravier
7f7c3d8434
Backends: Started adding a bunch of error handling stuff (error checking only done in SDL2 for now)
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-10 22:32:29 +02:00
Clownacy
b2679edf37
Update cute_spritebatch.h
...
Fixes compilation on FreeBSD (yes, apparently CSE2 supports FreeBSD
without even trying).
2020-04-10 01:20:12 +01:00
Clownacy
ba069de70e
Fix window resizing
...
If you made the window square, the screen wouldn't be centered
properly.
2020-04-10 00:45:57 +01:00
Clownacy
b6774440b6
The software renderer is longer specific to SDL2
2020-04-09 23:57:37 +01:00
Clownacy
efdae48885
Disable a Travis configuration
2020-04-09 22:45:17 +01:00