Added GLOptions class and fixed bug when triangle wasnt rendered