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. class RamSurface extends MutableSurface

    Permalink

    A mutable surface stored in RAM.

  6. trait RenderLoop[F1[-_, +_], F2[-_, -_, +_]] extends AnyRef

    Permalink

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

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

    F1

    effect type for stateless loops

    F2

    effect type for stateful loops

  7. trait Surface extends AnyRef

    Permalink

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

  8. trait SurfaceBackedCanvas extends LowLevelCanvas

    Permalink

    Canvas backed by a mutable surface.

Value Members

  1. object Canvas

    Permalink
  2. object CanvasManager

    Permalink
  3. object Color

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

    Permalink

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

  5. object LowLevelCanvas

    Permalink
  6. object RenderLoop

    Permalink
  7. object Surface

    Permalink

Ungrouped