What makes code maintainable?
Clear (minimal) interfaces
Self documenting naming
- everything is a "Manager"
- naming variables according to what class they are "UIButtonTextObject uiButtonTextObject;"
2020 I abandoned of trying to do graphics engine from scratch or rather from lowest level and opted to create graphics algorithms and engine side on top of another engine. During development, I considered using GLTF in engine but I reconsidered and revived my MOP fileformat for this project and after couple months of development, friend recommended writing a blog of the journey of developing MOP, hopefully documenting the reasoning behind design choices..
First iteration of drawing the MOP graph.. I can say this is purely academical work at this point.
|Somewhere along the line, scene graph sketches, but still very academic work.|
|latest version as of jan. 27. 2021 .. Some improvements on naming, and red arrows determining where blobs of data separate into different files.|
int width = 100;
int height = 100;
int channels = 4; // 4 == RGBA
int bytesPerChannel = 1;
buffer.resize(width * height * channels * bytesPerChannel);
// and access the buffer with buffer.data();
|Triangle points are uniform distance away from eachother.|
|A bit buggy generation..|
|Buggy fixed, Still couple oddities.|