A filled circle.
More...
#include <FilledCircle.h>
◆ Render()
void FilledCircle::Render |
( |
| ) |
|
|
overridevirtual |
The render method of a component.
During the render phase of the program, this function is what draws the component to the screen. This should be overridden for any UIComponents and actually be used to draw to the screen using one of the many SDL_Render functions available.
Implements dengine_UI::UIComponent.
◆ Setup()
void FilledCircle::Setup |
( |
Vec2 |
center, |
|
|
int |
radius |
|
) |
| |
Initializes a filled circle to be displayed on screen
- Parameters
-
center | A vec2 denoting the center of the circle |
radius | The radius of the circle in pixels |
◆ Update()
void FilledCircle::Update |
( |
| ) |
|
|
overridevirtual |
The update method of a component.
During the update phase of the program, this function is what updates and performs any logic within the component. This should be overridden for any UIComponents and actually be used to Update the internal logic of the component. This is called prior to the update anywhere else within the engine.
Implements dengine_UI::UIComponent.
◆ centerPoint
Vec2 dengine_UI::FilledCircle::centerPoint |
|
private |
int dengine_UI::FilledCircle::r |
|
private |