nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
rig.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_RIG_H_
2#define NANOMMO_CLIENT_RIG_H_
3
4#include <raylib.h>
5
6#include <vector>
7
8#include "content/rig.pb.h"
9
10namespace nanommo {
11
12/// A model of the joints, with no mesh yet: a bone for each joint, parent
13/// first, resting where the joint is, in metres, unturned. Dress gives it its
14/// body.
15Model RigModel(const std::vector<rig::Joint>& joints);
16
17/// The rig's motions, worked out for a model of it, as raylib's clips: the
18/// idle, the walk, the run and the death, in the protocol's order of motions,
19/// sixty frames a second. A loop's last frame is its first again, and the
20/// death's last two are where it lies. A model with its body keeps the body
21/// out of the ground as it falls. UnloadModelAnimations frees them.
22ModelAnimation* Bake(const rig::Rig& rig, const Model& model, int* count);
23
24} // namespace nanommo
25
26#endif // NANOMMO_CLIENT_RIG_H_
Definition chat.cc:9
Model RigModel(const std::vector< rig::Joint > &joints)
Definition rig.cc:469
ModelAnimation * Bake(const rig::Rig &rig, const Model &model, int *count)
Definition rig.cc:504