Engine class and simple triangle render