aleksigron / kokko

Simple cross-platform game engine using OpenGL.
MIT License
20 stars 1 forks source link

Convert remaining CustomRenderer features to GraphicsFeature #31

Closed aleksigron closed 2 years ago

aleksigron commented 2 years ago

CustomRenderer was the first idea of how to render custom graphics features. It turned out, the abstraction level was not correct for the purpose. It was hard to implement different kinds of features, other than a simple callback to run some external code in between other render commands.

GraphicsFeature implements the same basic idea, but with more structured inputs. It supports all the use cases CustomRenderer supports, and more. So we should convert the remaining features to the single system.