A Sprite that renders as a solid rectangle.
Definition at line 178 of file ge211_sprites.hxx.
Public Member Functions | |
Rectangle_sprite (Dims< int >, Color=Color::white()) | |
Constructs a rectangle sprite from required Dims and an optional Color, which defaults to white. More... | |
void | recolor (Color) |
Changes the color of this rectangle sprite. | |
Additional Inherited Members | |
Protected Member Functions inherited from Render_sprite | |
Render_sprite (Dims< int >) | |
Constructs a Render_sprite with the given pixel dimensions. More... | |
bool | can_paint () const |
Returns whether we can paint to this Render_sprite. More... | |
void | fill_surface (Color) |
Fills the whole surface with the given color. More... | |
void | fill_rectangle (Rect< int >, Color) |
Fills the given rectangle in the given color. More... | |
void | set_pixel (Posn< int >, Color) |
Sets one pixel to the given color. More... | |
Borrowed< SDL_Surface > | raw_surface () |
Gains access to the underlying SDL_Surface ☛. More... | |
|
explicit |
Constructs a rectangle sprite from required Dims and an optional Color, which defaults to white.
Definition at line 139 of file ge211_sprites.cxx.