Clownacy
05f382961d
Added OpenGL 2.1 renderer
...
Yay 100% hardware-acceleration. Yes, I know 2.1 is outdated and
crappy, but it was the easiest one to write. I'll probably make an
OpenGL 3.0 Core renderer at some point.
Anyway, font rendering isn't here yet, because I plan to overhaul it.
2019-07-23 15:20:14 +01:00
Clownacy
74c9931ebb
Change the renderer backend API for uploading pixels
...
Also fix some blatant build errors. I must be going mad - I swear
I've fixed that typedef thing like twice already.
2019-07-19 08:45:59 +01:00
Clownacy
f1e6103a46
...Actually add the SDL_Surface renderer file
2019-07-17 16:35:33 +01:00
Clownacy
44456e4a25
Add an SDL_Surface-based renderer
...
Ha, my custom software renderer is faster!
2019-07-17 16:09:18 +01:00
Clownacy
f21f17f4c2
Cleanup
2019-07-17 14:13:49 +01:00
Clownacy
7c12e7817c
Use SDL_ALPHA_OPAQUE
2019-07-16 00:37:31 +01:00
Clownacy
81eb438482
Fixes and tweaks
2019-07-16 00:15:20 +01:00
Clownacy
6a4f4e0df3
Added handlers for render target loss/window resize
...
These only really happen when you use exclusive fullscreen and
alt-tab out. Or, at least, it does on Windows with SDL2 in DirectX
mode.
2019-07-15 17:47:22 +01:00
Clownacy
b84661d88a
Move the backend files around a bit
2019-07-15 17:01:42 +01:00
Clownacy
15bfd00d25
Added hardware-accelerated rendering backend
...
Still need to add the code for surviving render target losses
2019-07-15 16:47:10 +01:00
Clownacy
21cf78b86d
Split Draw.cpp into common code and backend code
...
Should be easy to add the new hardware renderer now
2019-07-15 13:42:49 +01:00