Canvas

eu.joaocosta.minart.graphics.Canvas$
See theCanvas companion trait
object Canvas

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type

Members list

Concise view

Type members

Classlikes

object Buffer

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Buffer.type
sealed trait Buffer

A system resource used by the Canvas.

A system resource used by the Canvas.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Backbuffer.type
object KeyboardBuffer.type
object PointerBuffer.type
case class Settings(width: Int, height: Int, scale: Int, fullScreen: Boolean, clearColor: Color, title: String)

The canvas settings.

The canvas settings.

Attributes

clearColor

The color to be used when the canvas is cleared

fullscreen

Whether the canvas should be rendered in a full screen window

height

The canvas height

scale

The canvas integer scaling factor

title

The title to use if this Canvas needs to create a window

width

The canvas width

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def create(settings: Settings)(implicit backend: DefaultBackend[Any, LowLevelCanvas]): Canvas

Returns a new Canvas for the default backend for the target platform.

Returns a new Canvas for the default backend for the target platform.

Attributes

Returns:

Canvas using the default backend for the target platform