Commit graph

13 commits

Author SHA1 Message Date
Clownacy
fc102cd5a5 Add subpixel font rendering to the OpenGL backend
Finally, something besides the software renderer supports it
2019-08-07 22:33:13 +00:00
Clownacy
6a040c2248 Add missing #includes to rendering backends 2019-08-01 13:32:27 +00:00
Clownacy
d8aec418f9 OpenGL: Use a struct for defining 2D coordinates
Makes the code a bit more readable
2019-08-01 13:11:55 +00:00
Clownacy
67b3143ed6 OpenGL: Only enable blending for glyphs
Should improve performance
2019-08-01 01:26:04 +00:00
Clownacy
cf94736cbf OpenGL: Free VAO and VBO 2019-08-01 00:38:23 +00:00
Clownacy
f0c062cdc8 OpenGL: Clamp textures
This fixes this weird thing you'd see in the enhanced branch if the
screen is scaled (happens if you resize the window).

When the screen is scaled, OpenGL uses linear interpolation. This
would cause it to fetch samples from outside the texture. IIRC, by
default, the default behaviour is GL_REPEAT, which causes it to blend
with samples from the other side of the texture, creating strange
pixels at the end of the screen.
2019-08-01 00:08:23 +00:00
Clownacy
706aff0c8c Remove more redundant OpenGL code 2019-07-31 23:43:08 +00:00
Clownacy
90ffbacd29 Put OpenGL in 'forward-compatible' mode
Disables deprecated functionality
2019-07-31 23:07:45 +00:00
Clownacy
4769397c7a Clean up OpenGL error callback print 2019-07-31 23:03:32 +00:00
Clownacy
24dcd35522 More OpenGL cleanup and tweaks 2019-07-31 23:01:14 +00:00
Clownacy
ff5a0189e0 OpenGL: Ditch index buffer
Seems completely unnecessary for 2D
2019-07-31 22:50:14 +00:00
Clownacy
350ba46f2e Some OpenGL cleanup 2019-07-31 22:48:37 +00:00
Clownacy
eb62a80956 Change references to OpenGL 2.1 to 3.2 2019-07-31 22:38:33 +00:00
Renamed from src/Backends/Rendering/OpenGL2.cpp (Browse further)