Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | List of all members
Circle2D Class Referencefinal

#include <circle.h>

Inheritance diagram for Circle2D:
Node2D

Public Member Functions

 Circle2D (float radius=10.0f, bool fill=false, const Color &col=Color::WHITE)
 
void ready () override
 
void process (double delta_time) override
 
void draw (Renderer *renderer) override
 
void set_filled (bool fill)
 
- Public Member Functions inherited from Node2D
 Node2D ()
 
 Node2D (std::string name)
 
void set_z_index (int index)
 
int get_z_index () const
 
int get_effective_z_index () const
 
void print_tree (int indent=0) const
 
void change_visibility (bool visible)
 
void translate (float dx, float dy)
 
void rotate (float radians)
 
void scale (float sx, float sy)
 
Transform2D get_global_transform () const
 
Transform2D get_transform () const
 
void set_transform (const Transform2D &transform)
 
void add_child (const std::string &base_name, Node2D *node)
 
Node2Dget_node (const std::string &path)
 
template<typename T >
T * get_node ()
 
virtual void input (const InputManager *input)
 
virtual void draw_inspector ()
 
virtual void draw_hierarchy ()
 
void queue_free ()
 
virtual ~Node2D ()
 
const std::string & get_name () const
 
bool is_visible () const
 
bool is_effective_visible () const
 
HashMap< std::string, Node2D * > & get_tree ()
 
bool is_alive () const
 

Additional Inherited Members

- Protected Attributes inherited from Node2D
Transform2D _transform = {}
 
std::string _name = "Node"
 
int _z_index = 0
 
bool _is_visible = true
 
bool _is_ready = false
 
bool _to_free = false
 

Constructor & Destructor Documentation

◆ Circle2D()

Circle2D::Circle2D ( float  radius = 10.0f,
bool  fill = false,
const Color col = Color::WHITE 
)
inlineexplicit

Member Function Documentation

◆ draw()

void Circle2D::draw ( Renderer renderer)
overridevirtual

Reimplemented from Node2D.

◆ process()

void Circle2D::process ( double  delta_time)
overridevirtual

Reimplemented from Node2D.

◆ ready()

void Circle2D::ready ( )
overridevirtual

Reimplemented from Node2D.

◆ set_filled()

void Circle2D::set_filled ( bool  fill)

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