Package

eu.joaocosta.minart

core

Permalink

package core

Visibility
  1. Public
  2. All

Type Members

  1. trait Canvas extends AnyRef

    Permalink

    Canvas that can be painted.

    Canvas that can be painted.

    The Canvas is the main concept behind minart.

    A canvas represents a window with a width * height pixels. There's also a scale variable that controls the integer scaling and a clearColor that is applied to the whole canvas when it's cleared.

  2. trait CanvasManager extends AnyRef

    Permalink

    Abstraction that provides init and destroy operations to create and destroy canvas windows.

  3. final case class Color(r: Int, g: Int, b: Int) extends Product with Serializable

    Permalink

    RGB Color

  4. sealed trait FrameRate extends AnyRef

    Permalink

    Frame rate definition

  5. case class KeyboardInput(keysDown: Set[Key], keysPressed: Set[Key], keysReleased: Set[Key]) extends Product with Serializable

    Permalink

    The keyboard input stores the state of the keyboard at a certain point in time.

    The keyboard input stores the state of the keyboard at a certain point in time. It also accumulates keys that have been pressed and released.

    keysDown

    keys that are pressed down

    keysPressed

    keys that have been pressed

    keysReleased

    keys that have been released

  6. trait LowLevelCanvas extends Canvas with CanvasManager

    Permalink

    A low-level version of a canvas that provides its own canvas manager.

  7. case class PointerInput(position: Option[Position], pointsPressed: List[Position], pointsReleased: List[Position], isPressed: Boolean) extends Product with Serializable

    Permalink

    The pointer input stores the state of the mouse (or similar device) at a certain point in time.

    The pointer input stores the state of the mouse (or similar device) at a certain point in time. It also accumulates points that have been pressed and released.

    position

    the current pointer position

    pointsPressed

    points where the pointer pressed

    isPressed

    true if the pointer is currently pressed

  8. trait RenderLoop extends AnyRef

    Permalink

    The RenderLoop contains a set of helpful methods to implement basic render loops in a platform agonstic way.

Value Members

  1. object Canvas

    Permalink
  2. object CanvasManager

    Permalink
  3. object FrameRate

    Permalink
  4. object KeyboardInput extends Serializable

    Permalink
  5. object LowLevelCanvas

    Permalink
  6. object PointerInput extends Serializable

    Permalink
  7. object RenderLoop

    Permalink

Ungrouped