ContextMode

The map context mode. This can be used to optimizations if we know that the drawing context is not shared with other code.

enum ContextMode : Enum<ContextMode>

Parameters

value

Entries

UNIQUE
Link copied to clipboard

Unique context mode: in OpenGL, the GL context is not shared, thus we can retain knowledge about the GL state from a previous render pass. It also enables clearing the screen using glClear for the bottommost background layer when no pattern is applied to that layer.

UNIQUE("unique")
SHARED
Link copied to clipboard

Shared context mode: in OpenGL, the GL context is shared with other renderers, thus we cannot rely on the GL state set from a previous render pass.

SHARED("shared")
TILE
Link copied to clipboard

A once-off still image of a single tile.

TILE("tile")

Functions

compareTo
Link copied to clipboard
operator override fun compareTo(other: ContextMode): Int
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
finalize
Link copied to clipboard
override fun finalize()
getDeclaringClass
Link copied to clipboard
override fun getDeclaringClass(): Class<ContextMode>
hashCode
Link copied to clipboard
override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

name
Link copied to clipboard
override val name: String
ordinal
Link copied to clipboard
override val ordinal: Int
value
Link copied to clipboard

val value: String