That code from the 1st line was most likely converted from existing graphics code in C
Can you rewrite it in a way that's readable, performant and understandable/maintainable to someone with an understanding of the knowledge domain?
I agree, the code is ugly. I disagree it would be better if converted to some OOP hierarchy, it would be probably less understandable even if the code was tidier
Code like
SnarfleBlaster = new SnarfleBlaster();
SnuggleNerfer = new SnuggleNerfer();
Guffles guffles = SnarfleBlaster->Blast();
SnuggleNerfer->Tumbles(guffles);
Can you rewrite it in a way that's readable, performant and understandable/maintainable to someone with an understanding of the knowledge domain?
I agree, the code is ugly. I disagree it would be better if converted to some OOP hierarchy, it would be probably less understandable even if the code was tidier
Code like
Is tidy but absolutely dense