TerminalMaterial

roguelikestarterkit.terminal.TerminalMaterial
See theTerminalMaterial companion object
final case class TerminalMaterial(tileMap: AssetName, foreground: RGBA, background: RGBA, mask: RGBA, lighting: LightingModel, shaderId: Option[ShaderId]) extends Material

TerminalMaterial is a revised and leaner version of TerminalText, aimed at use with CloneTiles. It removes the dubious drop shadow functionality, requires less shader data, and has simpler shader logic.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Material
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def modifyLighting(modifier: LightingModel => LightingModel): TerminalMaterial
def toShaderData: ShaderData
def withBackground(newColor: RGBA): TerminalMaterial
def withBackground(newColor: RGB): TerminalMaterial
def withColors(newForeground: RGBA, newBackground: RGBA): TerminalMaterial
def withForeground(newForeground: RGB, newBackground: RGB): TerminalMaterial
def withForeground(newColor: RGBA): TerminalMaterial
def withForeground(newColor: RGB): TerminalMaterial
def withLighting(newLighting: LightingModel): TerminalMaterial
def withMask(newColor: RGBA): TerminalMaterial
def withMask(newColor: RGB): TerminalMaterial
def withShaderId(newShaderId: ShaderId): TerminalMaterial

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product