Iphone pixel distortion while zooming OpenGL ES content for Paint app

半世苍凉 提交于 2019-12-06 12:00:40

It is not weird at all. When you draw to OpenGL, you are drawing at a fixed resolution and that resolution is what size your OpenGL context is. You are most likely creating a context that is the resolution of your screen.

You will have to create your GL Context larger then the screen if you want to be able to zoom in without interpolating the image. For example, if you want to be able to zoom in to 200%, you will have to create a context with twice the number of pixels as your screen.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!