karai DON
karai DON

Reputation: 5

openGL features in view based application

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....

Upvotes: 0

Views: 275

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135540

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].

Upvotes: 2

Related Questions