开发者

glortho zox plane projection

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜