Bones¶
-
namespace
tnt -
namespace
doo -
-
struct
bone_comp¶ - #include <Bones.hpp>
A basic struct representing a bone used for skeletal animation.
-
struct
bones_sys¶ - #include <Bones.hpp>
A system that handles bones animations.
Public Functions
-
void
add_object(object const &id, bone_comp const &data_)¶ Add a new object to the bones system.
- Parameters
id: The id of the object that will have a bone component.data_: The data that the object will contain.
-
void
from_json(object const &id, nlohmann::json const &j)¶ Add new objects to the bones system by using data from a json chunk.
- Parameters
id: The id of the object to add to the bones system.j: The json chunk containing the objects data.
-
void
to_json(object const &id, nlohmann::json &j)¶ Store bones data of a specific object to a json chunk.
- Parameters
id: The id of the object to serialize to json.j: The json chunk where the data will be saved.
-
void
remove(object const &id) noexcept¶ Remove an object from the bones system.
- Parameters
id: The id of the object to remove.
-
void
clear() noexcept¶ Remove all the objects from the bones system.
-
void
-
struct
-
namespace