CameraController:draw

Executes a drawing function wrapped with active camera offset and transitions.

Usage

camera_controller:draw(draw_function)

Arguments

Name Type Description
draw_function function Function containing drawing logic.

Examples

MyScene.draw = function(self)
  self.camera_controller:draw(function()
    -- Scene drawing goes here
  end);
end

This site uses Just the Docs, a documentation theme for Jekyll.