OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
attachbinder.cpp
Go to the documentation of this file.
1
#include "
attachbinder.h
"
2
3
#include "
protomesh.h
"
4
#include "
skeleton.h
"
5
6
AttachBinder::AttachBinder
(
const
Skeleton
&s,
const
ProtoMesh
&m) {
7
bind
.resize(m.
submeshId
.size());
8
9
for
(
size_t
i=0;i<m.
submeshId
.size();++i){
10
auto
& att = m.
attach
[m.
submeshId
[i].id];
11
bind
[i] = s.
findNode
(att.name);
12
}
13
}
attachbinder.h
AttachBinder::AttachBinder
AttachBinder()=default
AttachBinder::bind
std::vector< size_t > bind
Definition
attachbinder.h:15
ProtoMesh
Definition
protomesh.h:21
ProtoMesh::attach
std::vector< Attach > attach
Definition
protomesh.h:82
ProtoMesh::submeshId
std::vector< SubMeshId > submeshId
Definition
protomesh.h:84
Skeleton
Definition
skeleton.h:11
Skeleton::findNode
size_t findNode(std::string_view name, size_t def=size_t(-1)) const
Definition
skeleton.cpp:52
protomesh.h
skeleton.h
game
graphics
mesh
attachbinder.cpp
Generated by
1.9.8