Why didn't you use a window library like glfw or sdl2? Wouldn't that make it more cross platform? Or is it to simply challenge yourself?
I do enjoy game engine programming, but I would never dare to write a renderer on the CPU. Good luck on your journey. I will be following this