|
| Sprite2D (const std::weak_ptr< Texture > &tex, const Color col=Color(255, 255, 255, 255), const glm::vec2 size={0, 0}) |
|
Rect2 | get_region () const |
|
void | set_region (const Rect2 ®ion, glm::vec2 size) |
|
void | set_color (const Color &col) |
|
void | ready () override |
|
void | process (double delta_time) override |
|
void | draw (Renderer *renderer) override |
|
void | input (const InputManager *input) override |
|
void | set_flip_horizontal (bool flip) |
|
void | set_flip_vertical (bool flip) |
|
bool | is_flipped_horizontal () const |
|
bool | is_flipped_vertical () const |
|
glm::vec2 | get_size () const |
|
void | set_texture (const std::weak_ptr< Texture > &tex) |
|
void | draw_hierarchy () override |
|
void | draw_inspector () override |
|
| 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 () |
|
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 |
|
2D Sprite Node
A 2D sprite node that can be added to the scene graph.
- Supports texture, color tinting, and region selection.
- Can be flipped horizontally and vertically.
- Version
- 1.1.0