Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我读到OpenGL的原点位于左下角,但触摸屏的原点位于左上角。
那么,我可以设置
gl.glOrthof(0.0f, this.width, this.height, 0.0f, 1.0f, -1.0f);
将 OpenGL 与屏幕坐标相匹配?这种方式我会遇到困难吗?