ge211
Circle_sprite Class Reference

Detailed Description

A Sprite that renders as a solid circle.

Definition at line 143 of file ge211_sprites.h.

+ Inheritance 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.
 

Constructor & Destructor Documentation

◆ Circle_sprite()

Circle_sprite ( int  radius,
Color  color = Color::white() 
)
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.

Preconditions:
  • radius must be positive

Definition at line 150 of file ge211_sprites.cpp.


The documentation for this class was generated from the following files: