Nested GLKView and GLKViewController

后端 未结 2 829
清歌不尽
清歌不尽 2020-12-21 04:22

I\'m new to OpenGL ES and I\'m experimenting with GLKit. My goal is to develop a very simple app just to get a good feel of OpenGL.

I started with Apple\'s sample cod

2条回答
  •  余生分开走
    2020-12-21 05:06

    Instead of the openGLView that is not used (and just takes up memory), you can use the main view dimensions:

    _openGLViewController.view.frame = self.view.frame; // instead of _openGLView.frame
    

提交回复
热议问题