GLKViewDelegate Protocol Reference
Available in iOS 5.0 and later.
An object that implements the
GLKViewDelegate protocol can be set as a
GLKView object’s delegate. A delegate allows your application to provide a drawing method to a
GLKView object without subclassing the
Drawing the View’s Contents
– glkView:drawInRect:required method
Draws the view’s contents. (required)
The view requesting that its contents be redrawn.
A rectangle that describes the area that needs to be updated.
The semantics of this method are identical to those of the
drawRect: method; the
GLKView object makes its OpenGL ES context the current context and binds its framebuffer as the target for OpenGL ES rendering commands. Your delegate method should then draw the view’s contents.
- Available in iOS 5.0 and later.