Crate playdate_sprite

source ·

Re-exports§

  • pub use crate::ext::*;

Modules§

Structs§

Traits§

Functions§

  • Marks the given dirty_rect (in screen coordinates) as needing a redraw.
  • Adds the given sprite to the display list, so that it is drawn in the current scene.
  • Returns an slice of all sprites that have collide rects that are currently overlapping.
  • Clears the clipping rectangle for all sprites with a Z index within start_z and end_z inclusive.
  • Draws every sprite in the display list.
  • Returns an slice of SpriteQueryInfos for all sprites with collision rects that intersect the line connecting x1, y1 and x2, y2.
  • Returns an slice of all sprites with collision rects that intersect the line connecting x1, y1 and x2, y2.
  • Returns an slice of all sprites with collision rects containing the point at x, y.
  • Returns an slice of all sprites with collision rects that intersect the width by height rect at x, y.
  • Removes all sprites from the display list.
  • Removes the given sprite from the display list.
  • Removes all of the given sprites from the display list.
  • Frees and reallocates internal collision data, resetting everything to its default state.
  • If set to true, causes all sprites to draw each frame, whether or not they have been marked dirty. This may speed up the performance of your game if the system’s dirty rect tracking is taking up too much time - for example if there are many sprites moving around on screen at once.
  • Sets the clipping rectangle for all sprites with a Z index within start_z and end_z inclusive.
  • Returns the total number of sprites in the display list.
  • Updates and draws every sprite in the display list.

Type Aliases§