Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
改变Y轴。从“左下”到“左上”?试过 glScalef (1.f,-1.f, 1.f); 但它把一切都颠倒了。如何制作 glRectf (0,0,200,200); 画在左上角而不是左下角?
给定
width
height
gluOrtho2D(0, width, 0, height)
glRectf(0, height, 200, height-200)创建所需的输出。
glRectf(0, height, 200, height-200)