// projection uses CreateOrthographicOffCenter to create 2d projection // matrix with 0,0 in the upper left. basicEffect.Projection = Matrix.CreateOrthographicOffCenter (0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height, 0, 0, 1);摘自XNA教学路径绘制
XNA正交投影矩阵原点在左上角
最新推荐文章于 2022-12-09 13:37:32 发布
本文介绍如何在XNA中使用CreateOrthographicOffCenter函数创建2D投影矩阵,实现0,0坐标在上左角的投影效果。

1428

被折叠的 条评论
为什么被折叠?



