Package

eu.joaocosta.minart

graphics

Permalink

package graphics

Visibility
  1. Public
  2. All

Type Members

  1. trait Canvas extends MutableSurface

    Permalink

    Window with a canvas that can be painted.

    Window with a canvas that can be painted.

    The Canvas is the main concept behind minart, providing access to both rendering and input functionallity.

    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 an init operation to create a new canvas.

    Abstraction that provides an init operation to create a new canvas.

    This is helpful to deal with the fact that creating a new canvas is a side-effectful operation.

  3. final class Color extends AnyVal

    Permalink

    RGB Color

  4. trait LowLevelCanvas extends Canvas with AutoCloseable

    Permalink

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

  5. trait MutableSurface extends Surface

    Permalink

    A surface that can be drawn on using mutable operations.

  6. trait Plane extends (Int, Int) ⇒ Color

    Permalink
  7. final class RamSurface extends MutableSurface

    Permalink

    A mutable surface stored in RAM.

  8. trait RenderLoop[S] extends AnyRef

    Permalink

    Render loop that keeps an internal state that is passed to every iteration.

    Render loop that keeps an internal state that is passed to every iteration.

    S

    State

  9. trait Surface extends AnyRef

    Permalink

    A Surface is an object that contains a set of pixels.

  10. trait SurfaceBackedCanvas extends LowLevelCanvas

    Permalink

    Canvas backed by a mutable surface.

  11. final case class SurfaceView(plane: Plane, width: Int, height: Int) extends Surface with Product with Serializable

    Permalink

    A view over a surface, stored as a plane limited by a width and height.

    A view over a surface, stored as a plane limited by a width and height. Allows lazy operations to be applied over a surface.

    This can have a performance impact. However, a new RAM surface with the operations already applied can be constructed using toRamSurface

Value Members

  1. object Canvas

    Permalink
  2. object CanvasManager

    Permalink
  3. object Color

    Permalink
  4. object ImpureRenderLoop extends Builder[Function1, Function2]

    Permalink

    A render loop that takes a side-effectful renderFrame operation.

  5. object LowLevelCanvas

    Permalink
  6. object Plane

    Permalink
  7. object RenderLoop

    Permalink
  8. object SurfaceView extends Serializable

    Permalink

Ungrouped