render loop added. Demo with triangle working.