Basically a textured QUAD.

const bmp = new BitmapElement(someTex);

  • bmp has width and height of someTex

// this is in the coord space of the texture // will not change the RECT of the BitmapElement itself bmp.setSourceRect(0,0, 100, 100);

// this will define a new source rect but also // the size. bmp.setSourceRectAndSize(0,0, 100, 100);

Hierarchy

Constructors

Properties

_children: RenderElement[]
color1: Color = ...

TOP-LEFT

color2: Color = ...

BOTTOM-LEFT

color3: Color = ...

TOP-RIGHT

color4: Color = ...

BOTTOM-RIGHT

name: string = ""
regX: number = 0
regY: number = 0
srcH: number = 0
srcW: number = 0
srcX: number = 0
srcY: number = 0
visible: boolean = true

Accessors

Methods

Generated using TypeDoc