OpenTK.Platform.iPhoneOS.iPhoneOSGameView.Run Method
Starts run-loop processing at a rate of updatesPerSecond frames per second.

Syntax

public void Run (double updatesPerSecond)

Parameters

updatesPerSecond
A double containing the number of frames per second that should be updated and rendered.

Exceptions

TypeReason
ArgumentExceptionupdatesPerSecond is less than 0.
ObjectDisposedException The instance has had Foundation.NSObject.Dispose invoked on it.

Remarks

If updatesPerSecond is 0.0, then iPhoneOSGameView.Run is invoked and the method exits.

Invokes iPhoneOSGameView.CreateFrameBuffer, raises the iPhoneOSGameView.Load event, then begins run-loop processing. Run-loop processing consists of the following step (which happens for each frame):

  1. The iPhoneOSGameView.UpdateFrame event is raised.
  2. The OpenGL frame buffer is re-bound to iPhoneOSGameView.Framebuffer.
  3. The iPhoneOSGameView.RenderFrame event is raised.

Run-loop processing should not be used if a persistant layer is used (i.e. iPhoneOSGameView.LayerRetainsBacking is false); the entire view should need to be re-rendered on every frame.

Requirements

Namespace: OpenTK.Platform.iPhoneOS
Assembly: OpenTK-1.0 (in OpenTK-1.0.dll)
Assembly Versions: 0.0.0.0