openGL features in view based application

核能气质少年 提交于 2019-12-11 14:35:39

问题


Can we use OpenGles Features in a viewbased application on iphone??

i mean in view based application when i button pressed it will goes to OpenGLes view and displays the image processing application... please help me....


回答1:


Sure, you can freely mix OpenGL and UIKit code in one app. The only thing that identifies a view as being OpenGL-based in iOS is that its backing layer is an instance of CAEAGLLayer, i.e. you have to override +layerClass in your OpenGL view class and have it return [CAEAGLLayer class].



来源:https://stackoverflow.com/questions/4388458/opengl-features-in-view-based-application

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