opengl: Change the origin to upper left corner

后端 未结 1 1076
孤独总比滥情好
孤独总比滥情好 2021-01-13 23:18

I am having trouble setting the openGL origin to the upper left corner of the view. So, in my window resize handler, I do something as;

// ox and oy are some         


        
1条回答
  •  孤街浪徒
    2021-01-13 23:36

    By flipping around the y-axis you flipped the chirality of the world space. Which means that the winding of your faces comes out differently. CCW becomes CW and vice versa. Most likely you have face culling enabled, so to account for the chirality flip you have to swap CCW for CW face culling.

    0 讨论(0)
提交回复
热议问题