Camera

indigo.shared.scenegraph.Camera
See theCamera companion trait
object Camera

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Camera.type

Members list

Type members

Classlikes

final case class Fixed(position: Point, zoom: Zoom, rotation: Radians) extends Camera

Indigo's default camera is fixed. It starts at position 0,0 and shows you everything down and right from there until it runs out of screen. Fixed cameras are useful for replicating the behaviour of Indigos normal windowing while controlling the position, zoom and rotation.

Indigo's default camera is fixed. It starts at position 0,0 and shows you everything down and right from there until it runs out of screen. Fixed cameras are useful for replicating the behaviour of Indigos normal windowing while controlling the position, zoom and rotation.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Camera
class Object
trait Matchable
class Any
Show all
object Fixed

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Fixed.type
final case class LookAt(target: Point, zoom: Zoom, rotation: Radians) extends Camera

LookAt cameras center the screen on whatever position they are looking at. Useful for following a players character, for example.

LookAt cameras center the screen on whatever position they are looking at. Useful for following a players character, for example.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Camera
class Object
trait Matchable
class Any
Show all
object LookAt

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
LookAt.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def default: Fixed

Givens

Givens

given given_CanEqual_Option_Option: CanEqual[Option[Camera], Option[Camera]]