Added support for GL_TRIANGLE_FAN and GL_TRIANGLES drawing