Replace SGE for backgrounds and right menubar#49
Conversation
|
Remaining SGE usage is all in CSurface.cpp Not a lot. |
|
Could also go straight to OpenGL without the interim step at vanilla SDL tho. Idea here tho is to follow up with terrain rendering as OpenGL which is biggest struggle for vanilla SDL. |
bcf0b4b to
c31ef98
Compare
Flamefire
left a comment
There was a problem hiding this comment.
We make CSurface more and more messy: A class used as a namespace from the old C days. Because now it feels we simply move parts of SGE to CSurface without any real improvement.
But TBH: As the editor works, why spend time here unless we do actually want to extent it with something worth doing?
SGE (SDL Graphics Extension), a abandoned 3rd party vendored library is used in s25edit to draw all triangles in 2D software.
Outside of drawing the triangles & terrain it's used for:
This PR converts those to vanilla SDL.
Later when we replace SGE with OpenGL for drawing triangles&terrain, we can delete SGE and use this method to keep drawing it as 2D using SDL.
Much later the UI should probably be drawn as OpenGL entirely.