Added advanced OpenGL functionality