DisplayListItem.this

Creates a display list item according to the newer architecture.

struct DisplayListItem
pure @trusted nothrow
this
(
int x
,
int y
,
ABitmap sprite
,,
ushort paletteSel = 0
,
ubyte paletteSh = 0
,
ubyte alpha = ubyte.max
,
int scaleHoriz = 1024
,
int scaleVert = 1024
)

Parameters

x int

X position of the sprite.

y int

Y position of the sprite.

sprite ABitmap

The bitmap to be used as the sprite.

paletteSel ushort

Selects a given palette.

paletteSh ubyte

Determines how many bits are being used.

alpha ubyte

The transparency of the sprite.

scaleHoriz int

Horizontal scaling of the sprite. 1024 is the base value, anything less will stretch, greater will shrink the sprite.

scaleVert int

Ditto for vertical.

Meta