0
改變軸Y.從「左下」到「左上」? 試過glScalef(1.f,-1.f,1.f); 但它將一切倒過來。 如何製作一個 glRectf(0,0,200,200); 畫在左上角而不是左下角?更改軸Y.從「左下」到「左上」? (opengl)
改變軸Y.從「左下」到「左上」? 試過glScalef(1.f,-1.f,1.f); 但它將一切倒過來。 如何製作一個 glRectf(0,0,200,200); 畫在左上角而不是左下角?更改軸Y.從「左下」到「左上」? (opengl)
鑑於
width
和視口的height
,gluOrtho2D(0, width, 0, height)
,glRectf(0, height, 200, height-200)
創建期望的輸出。