Instance Method

addUpdate(_:)

Adds the rectangle to the update region of the current frame.

Declaration

func addUpdate(_ r: CGRect)

Parameters

aRect

A rectangle defining the region to be added to the update region.

See Also

Rendering a Frame

func updateBounds() -> CGRect

Returns the bounds of the update region that contains all pixels that will be rendered by the current frame.

func render()

Render the update region of the current frame to the target context.

func nextFrameTime() -> CFTimeInterval

Returns the time at which the next update should happen.

func endFrame()

Release any data associated with the current frame.