开发者

glortho zox plane projection

开发者 https://www.devze.com 2023-03-07 10:50 出处:网络
I need to make an opengl project开发者_JS百科ion on a plane paralel with XOZ plane (perpendicular on OY).

I need to make an opengl project开发者_JS百科ion on a plane paralel with XOZ plane (perpendicular on OY).

Can you explain me what parameters I should use with glOrtho to make this projection.

Thanks,


The wording of your question is not entirely clear to me, but if you want to display things in a "2D" fashion, this is how to do it:

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, window_x_size, window_y_size, 0, 0, 1);
0

精彩评论

暂无评论...
验证码 换一张
取 消