#include <SDL.h>
#include <vec2.h>
Go to the source code of this file.
|
| void | DrawFilledCircle (Vec2 center, int radius, SDL_Color color) |
| |
| bool | IsRectOverlappingCircle (SDL_Rect rect, Vec2 circleCenter, float radius) |
| |
| SDL_Texture * | CreateCircleTexture (int radius, SDL_Color color) |
| |
| void | DrawCircleOutline (Vec2 center, int radius, SDL_Color color) |
| | Draws an unfilled circle directly to the renderer.
|
| |
| SDL_Texture * | CreateCircleOutlineTexture (int radius, SDL_Color color, int thickness) |
| | Creates a texture containing an unfilled circle.
|
| |
| SDL_Texture * | CreateHalfCircleOutlineTexture (int radius, Vec2 direction, SDL_Color color, int thickness) |
| | Creates a texture containing an unfilled half-circle outline oriented in a specific direction.
|
| |
| void | DrawFilledHalfCircle (Vec2 center, int radius, Vec2 direction, SDL_Color color) |
| | Draws a filled half-circle in a specified direction.
|
| |
| SDL_Texture * | CreateHalfCircleTexture (int radius, Vec2 direction, SDL_Color color) |
| | Creates a half-circle texture oriented in the specified direction.
|
| |
◆ CreateCircleOutlineTexture()
| SDL_Texture * CreateCircleOutlineTexture |
( |
int |
radius, |
|
|
SDL_Color |
color, |
|
|
int |
thickness |
|
) |
| |
Creates a texture containing an unfilled circle.
- Parameters
-
| radius | Radius of the circle |
| color | Color of the circle outline |
| thickness | Line thickness (1 for thin outline) |
- Returns
- SDL_Texture* containing the circle outline
◆ CreateCircleTexture()
| SDL_Texture * CreateCircleTexture |
( |
int |
radius, |
|
|
SDL_Color |
color |
|
) |
| |
◆ CreateHalfCircleOutlineTexture()
| SDL_Texture * CreateHalfCircleOutlineTexture |
( |
int |
radius, |
|
|
Vec2 |
direction, |
|
|
SDL_Color |
color, |
|
|
int |
thickness |
|
) |
| |
Creates a texture containing an unfilled half-circle outline oriented in a specific direction.
- Parameters
-
| radius | Radius of the half-circle |
| direction | Direction vector determining the orientation |
| color | Color of the half-circle outline |
| thickness | Line thickness (1 for thin outline) |
- Returns
- SDL_Texture* containing the half-circle outline
◆ CreateHalfCircleTexture()
| SDL_Texture * CreateHalfCircleTexture |
( |
int |
radius, |
|
|
Vec2 |
direction, |
|
|
SDL_Color |
color |
|
) |
| |
Creates a half-circle texture oriented in the specified direction.
- Parameters
-
| radius | Radius of the half-circle |
| direction | Direction vector determining the orientation |
| color | Color of the half-circle |
- Returns
- SDL_Texture* containing the half-circle
◆ DrawCircleOutline()
| void DrawCircleOutline |
( |
Vec2 |
center, |
|
|
int |
radius, |
|
|
SDL_Color |
color |
|
) |
| |
Draws an unfilled circle directly to the renderer.
- Parameters
-
| center | Center position of the circle |
| radius | Radius of the circle |
| color | Color of the circle outline |
◆ DrawFilledCircle()
| void DrawFilledCircle |
( |
Vec2 |
center, |
|
|
int |
radius, |
|
|
SDL_Color |
color |
|
) |
| |
◆ DrawFilledHalfCircle()
| void DrawFilledHalfCircle |
( |
Vec2 |
center, |
|
|
int |
radius, |
|
|
Vec2 |
direction, |
|
|
SDL_Color |
color |
|
) |
| |
Draws a filled half-circle in a specified direction.
Renders a half-circle filled with the specified color, oriented in the direction provided by the direction vector.
- Parameters
-
| center | Center position of the half-circle |
| radius | Radius of the half-circle |
| direction | Direction vector determining the orientation |
| color | Color of the half-circle |
◆ IsRectOverlappingCircle()
| bool IsRectOverlappingCircle |
( |
SDL_Rect |
rect, |
|
|
Vec2 |
circleCenter, |
|
|
float |
radius |
|
) |
| |