Firstly, it’s not really an engine.
Reason why creating one is generally bad idea was well described here.
What is it then?
My implementation of two gaming patterns: “Game loop” and “State” combined - something that I’m using in most of my projects as a starting point.