Custom view transition in OpenGL ES

前端 未结 4 1047
野趣味
野趣味 2021-02-01 10:21

I\'m trying to create a custom transition, to serve as a replacement for a default transition you would get here, for example:

[self.navigationController pushVie         


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 10:52

    I think the function you might be thinking of is http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage2D.xml ... you set the viewport to the texture size and then draw as usual, then do glCopyTexImage2D to copy the scene onto a texture.

    or you should look into FrameBuffer Objects. The default OpenGL template in XCode uses these. Just generate the example project to see how those work.

提交回复
热议问题