-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathm3_bindings_2.cpp
More file actions
318 lines (282 loc) · 21.4 KB
/
Copy pathm3_bindings_2.cpp
File metadata and controls
318 lines (282 loc) · 21.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2026 Fernando Sahmkow
//
// AUTOGENERATED by tools/codegen — do not edit by hand.
// Regenerate via: python -m tools.codegen.codegen m3 --backend pybind11
//
// Source headers and `@bind` annotations live under include/whiteout/.
//
// Include order matters here:
// 1. pybind11/pybind11.h sets up the base library
// 2. project headers define whiteout::u32 et al used inside MAKE_OPAQUE
// 3. PYBIND11_MAKE_OPAQUE opts out of stl.h's auto-conversion for our vectors
// 4. pybind11/stl.h, stl_bind.h honor the opaque declarations
#include <pybind11/pybind11.h>
#include <array>
#include <cstdint>
#include <optional>
#include <sstream>
#include <string>
#include <vector>
#include <whiteout/vector_types.h>
#include <whiteout/models/m3/types.h>
#include <whiteout/models/m3/structures/anim.h>
#include <whiteout/models/m3/structures/base.h>
#include <whiteout/models/m3/structures/effect.h>
#include <whiteout/models/m3/structures/material.h>
#include <whiteout/models/m3/structures/mesh.h>
#include <whiteout/models/m3/structures/misc.h>
#include <whiteout/models/m3/structures/physics.h>
#include <whiteout/models/m3/structures/scene.h>
#include <whiteout/models/m3/structures.h>
#include <whiteout/models/m3/parser.h>
#include <whiteout/models/m3/writer.h>
#include <whiteout/interfaces.h>
PYBIND11_MAKE_OPAQUE(std::vector<std::string>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::u8>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::u32>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::u64>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::u16>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::Vector3f>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::Vector4f>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AnimRef<whiteout::f32>>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AnimRef<whiteout::Vector3f>>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AnimationGroup>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AnimationState>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AttachmentPoint>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::AttachmentVolume>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Batch>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::BillboardBehavior>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Bone>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::BoneAnimationSet>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Camera>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ClothCollider>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ClothPhysics>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ClothProxy>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::CompositeMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::CompositeSection>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ConvexHullHalfEdge>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::CreepMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::DataDrivenGroup>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::DataDrivenMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::DataDrivenProperty>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::DisplacementMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Force>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::HairMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::HitTestShape>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::IKCCD>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::IKJoint>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::IKTwoJoint>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::InitialReference>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::LensFlare>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Light>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::MaterialMap>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::MeshDivision>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::MeshSection>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::OneBoneSolver>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ParticleEmitter>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ParticleEmitterCopy>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::PhysicsJoint>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::PhysicsMeshBvhNode>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::PhysicsShape>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Projector>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ReflectionMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Region>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::RibbonEmitter>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::RigidBody>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::STBMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Sequence>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ShadowBox>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::SplineRibbon>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::StandardMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::SubFlare>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::SubTrackContainer>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::TerrainMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::TrailingModel>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::TriggerData>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::TurretBehavior>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::ViewVolume>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::VolumeMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::VolumeNoiseMaterial>);
PYBIND11_MAKE_OPAQUE(std::vector<whiteout::m3::Warp>);
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <pybind11/operators.h>
#include <pybind11/numpy.h>
namespace py = pybind11;
namespace {
// Buffer-protocol vector wrapper for std::vector<Elem> where Elem is laid
// out as `Components` contiguous Scalars (Vector3f, Quaternion, ColorBGRA…).
//
// pybind11's bind_vector<> wires up py::buffer_protocol() automatically,
// but stl_bind.h's auto-buffer-info path static-asserts on element types
// lacking a format_descriptor — Vector3f/Quaternion don't have one.
// We provide the same Python surface (append, extend, clear, __getitem__,
// __setitem__, __iter__, __len__, __bool__) plus a 2D buffer view.
template <typename Elem, typename Scalar, py::ssize_t Components>
auto bindBufferVector(py::module_& m, const char* name) {
using Vec = std::vector<Elem>;
py::class_<Vec> cls(m, name, py::buffer_protocol());
cls.def(py::init<>());
cls.def("__len__", [](const Vec& v) { return v.size(); });
cls.def("__bool__", [](const Vec& v) { return !v.empty(); });
cls.def("__getitem__", [](const Vec& v, std::size_t i) -> Elem {
if (i >= v.size()) throw py::index_error();
return v[i];
});
cls.def("__setitem__", [](Vec& v, std::size_t i, const Elem& val) {
if (i >= v.size()) throw py::index_error();
v[i] = val;
});
cls.def("__iter__", [](Vec& v) {
return py::make_iterator(v.begin(), v.end());
}, py::keep_alive<0, 1>());
cls.def("append", [](Vec& v, const Elem& val) { v.push_back(val); });
cls.def("extend", [](Vec& v, const Vec& o) {
v.insert(v.end(), o.begin(), o.end());
});
cls.def("clear", &Vec::clear);
cls.def_buffer([](Vec& v) -> py::buffer_info {
if constexpr (Components == 1) {
return py::buffer_info(
v.data(),
static_cast<py::ssize_t>(sizeof(Scalar)),
py::format_descriptor<Scalar>::format(),
1,
{ static_cast<py::ssize_t>(v.size()) },
{ static_cast<py::ssize_t>(sizeof(Scalar)) });
} else {
return py::buffer_info(
v.data(),
static_cast<py::ssize_t>(sizeof(Scalar)),
py::format_descriptor<Scalar>::format(),
2,
{ static_cast<py::ssize_t>(v.size()), Components },
{ static_cast<py::ssize_t>(sizeof(Elem)),
static_cast<py::ssize_t>(sizeof(Scalar)) });
}
});
return cls;
}
} // namespace
// Part 2 of bind_m3(), which calls the parts in order.
void bind_m3_2(py::module_& m) {
py::class_<whiteout::m3::Writer>(m, "Writer", R"doc(Writer for M3 model files
Writes Model structures to disk in binary M3 format. Uses the PImpl (Pointer to Implementation) idiom to hide implementation details.)doc")
.def(py::init<>())
.def("write", py::overload_cast<const std::string&, const whiteout::m3::Model&>(&whiteout::m3::Writer::write), py::arg("filePath"), py::arg("model"), R"doc(Write an M3 model to a file on disk @param filePath Output file path @param model Model data to serialize @throws std::runtime_error If file cannot be created or writing fails)doc")
.def("write",
[](whiteout::m3::Writer& self, const whiteout::m3::Model& model) {
auto __v = self.write(model);
return py::bytes(
reinterpret_cast<const char*>(__v.data()), __v.size());
}, py::arg("model"), R"doc(Write an M3 model to a byte buffer @param model Model data to serialize @return Byte buffer containing the M3 file data)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::f32>>(m, "AnimRefF32", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::f32>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::f32>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::f32>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::f32>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::f32>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::f32>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::Vector3f>>(m, "AnimRefVector3f", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::Vector3f>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::Vector3f>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::Vector3f>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::Vector3f>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::Vector3f>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::Vector3f>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>>(m, "AnimRefM3ColorBGRA", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::m3::ColorBGRA>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::u16>>(m, "AnimRefU16", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::u16>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::u16>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::u16>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::u16>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::u16>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::u16>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::Vector2f>>(m, "AnimRefVector2f", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::Vector2f>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::Vector2f>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::Vector2f>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::Vector2f>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::Vector2f>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::Vector2f>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::u32>>(m, "AnimRefU32", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::u32>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::u32>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::u32>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::u32>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::u32>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::u32>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::Quaternion>>(m, "AnimRefQuaternion", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::Quaternion>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::Quaternion>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::Quaternion>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::Quaternion>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::Quaternion>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::Quaternion>::unused, R"doc(Typically -1)doc")
;
py::class_<whiteout::m3::AnimRef<whiteout::m3::Extent>>(m, "AnimRefM3Extent", R"doc(Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.))doc")
.def(py::init<>())
.def_readwrite("interp_type", &whiteout::m3::AnimRef<whiteout::m3::Extent>::interpType, R"doc(Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier)doc")
.def_readwrite("flags", &whiteout::m3::AnimRef<whiteout::m3::Extent>::flags, R"doc(Animation flags)doc")
.def_readwrite("anim_id", &whiteout::m3::AnimRef<whiteout::m3::Extent>::animId, R"doc(Animation identifier (links to STC animation data; 0=not animated))doc")
.def_readwrite("init_value", &whiteout::m3::AnimRef<whiteout::m3::Extent>::initValue, R"doc(Initial/default value (used when not animated))doc")
.def_readwrite("null_value", &whiteout::m3::AnimRef<whiteout::m3::Extent>::nullValue, R"doc(Null/reset value)doc")
.def_readwrite("unused", &whiteout::m3::AnimRef<whiteout::m3::Extent>::unused, R"doc(Typically -1)doc")
;
py::bind_vector<std::vector<whiteout::u64>>(m, "VectorU64", py::buffer_protocol());
py::bind_vector<std::vector<whiteout::m3::AnimRef<whiteout::f32>>>(m, "VectorM3AnimRefF32");
py::bind_vector<std::vector<whiteout::m3::AnimRef<whiteout::Vector3f>>>(m, "VectorM3AnimRefVector3f");
py::bind_vector<std::vector<whiteout::m3::AnimationGroup>>(m, "VectorM3AnimationGroup");
py::bind_vector<std::vector<whiteout::m3::AnimationState>>(m, "VectorM3AnimationState");
py::bind_vector<std::vector<whiteout::m3::AttachmentPoint>>(m, "VectorM3AttachmentPoint");
py::bind_vector<std::vector<whiteout::m3::AttachmentVolume>>(m, "VectorM3AttachmentVolume");
py::bind_vector<std::vector<whiteout::m3::Batch>>(m, "VectorM3Batch");
py::bind_vector<std::vector<whiteout::m3::BillboardBehavior>>(m, "VectorM3BillboardBehavior");
py::bind_vector<std::vector<whiteout::m3::Bone>>(m, "VectorM3Bone");
py::bind_vector<std::vector<whiteout::m3::BoneAnimationSet>>(m, "VectorM3BoneAnimationSet");
py::bind_vector<std::vector<whiteout::m3::Camera>>(m, "VectorM3Camera");
py::bind_vector<std::vector<whiteout::m3::ClothCollider>>(m, "VectorM3ClothCollider");
py::bind_vector<std::vector<whiteout::m3::ClothPhysics>>(m, "VectorM3ClothPhysics");
py::bind_vector<std::vector<whiteout::m3::ClothProxy>>(m, "VectorM3ClothProxy");
py::bind_vector<std::vector<whiteout::m3::CompositeMaterial>>(m, "VectorM3CompositeMaterial");
py::bind_vector<std::vector<whiteout::m3::CompositeSection>>(m, "VectorM3CompositeSection");
py::bind_vector<std::vector<whiteout::m3::ConvexHullHalfEdge>>(m, "VectorM3ConvexHullHalfEdge");
py::bind_vector<std::vector<whiteout::m3::CreepMaterial>>(m, "VectorM3CreepMaterial");
}