在Java中使用OpenGL,我可以对世界格局的矩阵坐标如下:如何定义自定义坐标系?
GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
// window size is 640x480
// viewport size is 8x6 (e.g. in meters, so you see only 8x6 meters of the world in a flash game)
GL.glOrtho(0, 8, 0, 6, -1, 1);
我如何可以做同样的动作脚本?当我的平铺大小是80px我想说
mySprite.x = 1; // 80 pixels
mySprite.x = 2; // 160 pixels
mySprite.x = 3; // 240 pixels
它应该使精灵出现80,160或240像素离左侧。
AS3中没有等效投影的可能性吗?