nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
figures.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_FIGURES_H_
2#define NANOMMO_CLIENT_FIGURES_H_
3
4#include <raylib.h>
5
6#include <vector>
7
8#include "content/figures.pb.h"
9
10namespace nanommo {
11
12/// Puts the parts in place of the model's meshes, each bound to its own bone
13/// alone, where the bone rests in the model's bind pose, so the model's clips
14/// pose the parts as they posed its mesh. `metre` is a metre in the model's
15/// units. A part on a bone the model doesn't have is left out.
16void Dress(Model& model, const std::vector<figures::Part>& parts, float metre);
17
18/// The parts' mesh, bound to the model's bones the way Dress binds them, for
19/// something that goes over the model's own, such as the hair.
20Mesh Parts(const Model& model, const std::vector<figures::Part>& parts,
21 float metre);
22
23/// The same parts for the outline, which pushes each corner out along its
24/// normal: each corner has its shape's smooth normal, so the corners where
25/// faces meet move out together, where with each face's own they'd come apart.
26Mesh Hull(const Model& model, const std::vector<figures::Part>& parts,
27 float metre);
28
29} // namespace nanommo
30
31#endif // NANOMMO_CLIENT_FIGURES_H_
Definition chat.cc:9
void Dress(Model &model, const std::vector< figures::Part > &parts, float metre)
Definition figures.cc:253
Mesh Hull(const Model &model, const std::vector< figures::Part > &parts, float metre)
Definition figures.cc:273
Mesh Parts(const Model &model, const std::vector< figures::Part > &parts, float metre)
Definition figures.cc:268