athanggupte / ApexGameEngine

Apex Game Engine
MIT License
4 stars 1 forks source link

Redesign OpenGL Buffer creation pipeline #41

Open athanggupte opened 1 year ago

athanggupte commented 1 year ago

The current implementation of the OpenGL Buffer creation mechanism involves a diamond inherence from the OpenGL{XYZ}Buffer classes to the Buffer base class through the {XYZ}Buffer abstract class and the OpenGLBuffer abstract class. This is not only a bad design strategy but can also slow down the code in the long run when a lot of buffers are built and managed.

Redesigning the entire Buffer class hierarchy and the creation pipeline is highly advisable. Methods to consider: