Default ctor
Creates a sprite from a bitmap with the given data, then places it to the display list. (New architecture)
Checks all sprites for whether they're on screen or not. Called every time the layer is being scrolled.
Checks whether a sprite would be displayed on the screen, then updates the display list. Returns true if it's on screen.
Clears all sprite from the layer.
Searches the DisplayListItem by priority and returns it. Can be used for external use without any safety issues.
Returns the selected paletteID of the sprite.
Gets the sprite's current horizontal scale value
Gets the sprite's current vertical scale value
Returns the displayed portion of the sprite.
Returns the sprite rendering function.
Moves a sprite to the given position.
Moves a sprite by the given amount.
Relative scrolling. Positive values scrolls the layer left and up, negative values scrolls the layer down and right.
Removes a sprite from both displaylists by priority.
Replaces the bitmap of the given sprite.
Ditto with move
Ditto with move
Scales sprite horizontally. Returns the new size, or -1 if the scaling value is invalid, or -2 if spriteID not found.
Scales sprite vertically. Returns the new size, or -1 if the scaling value is invalid, or -2 if spriteID not found.
Absolute scrolling.
Sets the paletteID of the sprite. Returns the new ID, which is truncated to the possible values with a simple binary and operation Palette must exist in the parent Raster, otherwise AccessError might happen during
Writes the displayed portion of the sprite. Returns the new slice, if invalid (greater than the bitmap, etc.) returns Coordinate.init.
Sets the sprite's rendering function. Can be a custom one.
Sets the sprite's rendering function from a predefined ones.
Helps to determine the displaying properties and order of sprites.
All sprites of this layer
Local buffer for scaling
General-purpose sprite controller and renderer.