Protocol

GLKViewDelegate

Drawing callback methods for use with a GLKView object.

Overview

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

Topics

Drawing the View’s Contents

func glkView(GLKView, drawIn: CGRect)

Draws the view’s contents.

Required.

Relationships

Inherits From

See Also

OpenGL ES View Rendering

class GLKView

A default implementation for views that draw their content using OpenGL ES.

class GLKViewController

A view controller that manages an OpenGL ES rendering loop.

protocol GLKViewControllerDelegate

Rendering loop callback methods for use with a GLKViewController object.