No need to apology It’s actually ok to have dirty code (or more what you think is dirty) and not be ashamed of that, you can always refactor it later and being open source can help there too. But I must admit I’m still learning to be not ashamed .oO(… Just how many times I’ve seen projects where author promised open sourcing after he clean code and… nobody ever seen the author again …)
Oh I meant something different: providing more OpenGL-like API to your existing software renderer. But I didn’t yet looked at your code in details (have to do other things currently) so it might also just be already there