Arcade
|
A basic rendering primitive containing an image, a swatch to apply to it, and a location to draw it on-screen. More...
Public Member Functions | |
Sprite (Image image, SwatchIndex swatchIndex, Vector2F position=default(Vector2F)) | |
Constructs a new sprite using the specified Image and SwatchIndex. More... | |
virtual void | Render (Graphics graphics) |
Render to screen. More... | |
Protected Member Functions | |
void | GetGlare (Graphics graphics, out Color24 avgColor, out float coverage) |
Properties | |
Image | Image [get, set] |
The Image used for this sprite. More... | |
Vector2F | Position [get, set] |
World space position. More... | |
float | X [get, set] |
World space x-position. More... | |
float | Y [get, set] |
World space y-position. More... | |
virtual Vector2I | Size [get] |
Width and Height of this sprite's Image. More... | |
int | Width [get] |
Width of this sprite's Image. More... | |
int | Height [get] |
Height of this sprite's Image. More... | |
bool | FlipX [get, set] |
Determines whether this sprite's Image is drawn flipped along the x-axis. More... | |
bool | FlipY [get, set] |
Determines whether this sprite's Image is drawn flipped along the y-axis. More... | |
int | Orientation [get, set] |
Local integer rotation. (0 = no rotation, 1 = 90° counter-clockwise, 2 = 180°, 3 = 90° clockwise) More... | |
bool | IsVisible [get, set] |
Is this sprite visible? More... | |
SwatchIndex | SwatchIndex [get, set] |
Swatch index from the palette to render with. More... | |
A basic rendering primitive containing an image, a swatch to apply to it, and a location to draw it on-screen.
|
inline |
Constructs a new sprite using the specified Image and SwatchIndex.
image | The Image to display for this sprite. |
swatchIndex | The swatch of colors to use for this sprite. |
position | The initial position of this sprite. |
|
inlineprotected |
|
inlinevirtual |
Render to screen.
graphics | The Graphics context to render with. |
Implements GameAPI.BudgetBoy.IRenderable.
Reimplemented in GameAPI.BudgetBoy.Text.
|
getset |
Determines whether this sprite's Image is drawn flipped along the x-axis.
|
getset |
Determines whether this sprite's Image is drawn flipped along the y-axis.
|
get |
Height of this sprite's Image.
|
getset |
Is this sprite visible?
|
getset |
Local integer rotation. (0 = no rotation, 1 = 90° counter-clockwise, 2 = 180°, 3 = 90° clockwise)
|
getset |
World space position.
|
getset |
Swatch index from the palette to render with.
|
get |
Width of this sprite's Image.
|
getset |
World space x-position.
|
getset |
World space y-position.