开发者

How to set the OpenGL project matrix to get projection as described below?

I just want to mimic a perspective projection without using z coordinate (ie: Only using 2d environment). The x axis must shrink as y axis increases towards the top.

I have following code as ready,

glMatrixMode(GL_PROJECTION);
glLo开发者_Go百科adIdentity();
glOrtho(0, size.width, 0, size.height, -1024 * CC_CONTENT_SCALE_FACTOR(), 1024 * CC_CONTENT_SCALE_FACTOR());
GLfloat proj[16] = { ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? };
glMultMatrixf(proj)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜