A Sprite that renders as a solid circle.
Definition at line 193 of file ge211_sprites.hxx.
Inheritance diagram for Circle_sprite:
Collaboration diagram for Circle_sprite:Public Member Functions | |
| Circle_sprite (int radius, Color=Color::white()) | |
| Constructs a circle sprite from its radius and optionally a Color, which defaults to white. More... | |
| void | recolor (Color) |
| Changes the color of this circle 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 circle sprite from its radius and optionally a Color, which defaults to white.
Note that when positioned, the reference point is the upper-left corner of the bounding box of the sprite, not the center of the circle.
Definition at line 159 of file ge211_sprites.cxx.