my humble attempt at a slim and modern GL engine