Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
#include <circle.h>
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) |
![]() | |
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) |
Node2D * | get_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 | |
![]() | |
Transform2D | _transform = {} |
std::string | _name = "Node" |
int | _z_index = 0 |
bool | _is_visible = true |
bool | _is_ready = false |
bool | _to_free = false |
|
inlineexplicit |
|
overridevirtual |
Reimplemented from Node2D.
|
overridevirtual |
Reimplemented from Node2D.
void Circle2D::set_filled | ( | bool | fill | ) |