And drawing the shape like this: glClear(GL_COLOR_BUFFER_BIT); glColor3f(1, 0, 0); glBegin(GL_POLYGON); glVertex2f(-5, -5); // bottom left glVertex2f ...
確定! 回上一頁