xash3d-ffi 0.2.2

Raw FFI bindings to Xash3D FWGS engine
Documentation
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
/* automatically generated by rust-bindgen 0.72.0 */

pub const STUDIO_INTERFACE_VERSION: i32 = 1;
pub const SV_BLENDING_INTERFACE_VERSION: i32 = 1;
pub const STUDIO_VERSION: i32 = 10;
pub const MAXSTUDIOVERTS: i32 = 16384;
pub const MAXSTUDIOSEQUENCES: i32 = 256;
pub const MAXSTUDIOSKINS: i32 = 256;
pub const MAXSTUDIOSRCBONES: i32 = 512;
pub const MAXSTUDIOBONES: i32 = 128;
pub const MAXSTUDIOMODELS: i32 = 32;
pub const MAXSTUDIOBODYPARTS: i32 = 32;
pub const MAXSTUDIOGROUPS: i32 = 16;
pub const MAXSTUDIOMESHES: i32 = 256;
pub const MAXSTUDIOCONTROLLERS: i32 = 32;
pub const MAXSTUDIOATTACHMENTS: i32 = 64;
pub const MAXSTUDIOBONEWEIGHTS: i32 = 4;
pub const MAXSTUDIONAME: i32 = 32;
pub const MAXSTUDIOPOSEPARAM: i32 = 24;
pub const MAX_STUDIO_LIGHTMAP_SIZE: i32 = 256;
pub const STUDIO_ROCKET: i32 = 1;
pub const STUDIO_GRENADE: i32 = 2;
pub const STUDIO_GIB: i32 = 4;
pub const STUDIO_ROTATE: i32 = 8;
pub const STUDIO_TRACER: i32 = 16;
pub const STUDIO_ZOMGIB: i32 = 32;
pub const STUDIO_TRACER2: i32 = 64;
pub const STUDIO_TRACER3: i32 = 128;
pub const STUDIO_AMBIENT_LIGHT: i32 = 256;
pub const STUDIO_TRACE_HITBOX: i32 = 512;
pub const STUDIO_FORCE_SKYLIGHT: i32 = 1024;
pub const STUDIO_HAS_BUMP: i32 = 65536;
pub const STUDIO_STATIC_PROP: i32 = 536870912;
pub const STUDIO_HAS_BONEINFO: i32 = 1073741824;
pub const STUDIO_HAS_BONEWEIGHTS: i64 = 2147483648;
pub const STUDIO_NF_FLATSHADE: i32 = 1;
pub const STUDIO_NF_CHROME: i32 = 2;
pub const STUDIO_NF_FULLBRIGHT: i32 = 4;
pub const STUDIO_NF_NOMIPS: i32 = 8;
pub const STUDIO_NF_SMOOTH: i32 = 16;
pub const STUDIO_NF_ADDITIVE: i32 = 32;
pub const STUDIO_NF_MASKED: i32 = 64;
pub const STUDIO_NF_NORMALMAP: i32 = 128;
pub const STUDIO_NF_GLOSSMAP: i32 = 256;
pub const STUDIO_NF_GLOSSPOWER: i32 = 512;
pub const STUDIO_NF_LUMA: i32 = 1024;
pub const STUDIO_NF_ALPHASOLID: i32 = 2048;
pub const STUDIO_NF_TWOSIDE: i32 = 4096;
pub const STUDIO_NF_HEIGHTMAP: i32 = 8192;
pub const STUDIO_NF_NODRAW: i32 = 65536;
pub const STUDIO_NF_NODLIGHT: i32 = 131072;
pub const STUDIO_NF_NOSUNLIGHT: i32 = 262144;
pub const STUDIO_NF_HAS_ALPHA: i32 = 1048576;
pub const STUDIO_NF_HAS_DETAIL: i32 = 2097152;
pub const STUDIO_NF_COLORMAP: i32 = 1073741824;
pub const STUDIO_NF_UV_COORDS: i64 = 2147483648;
pub const STUDIO_X: i32 = 1;
pub const STUDIO_Y: i32 = 2;
pub const STUDIO_Z: i32 = 4;
pub const STUDIO_XR: i32 = 8;
pub const STUDIO_YR: i32 = 16;
pub const STUDIO_ZR: i32 = 32;
pub const STUDIO_LX: i32 = 64;
pub const STUDIO_LY: i32 = 128;
pub const STUDIO_LZ: i32 = 256;
pub const STUDIO_LXR: i32 = 512;
pub const STUDIO_LYR: i32 = 1024;
pub const STUDIO_LZR: i32 = 2048;
pub const STUDIO_LINEAR: i32 = 4096;
pub const STUDIO_QUADRATIC_MOTION: i32 = 8192;
pub const STUDIO_RESERVED: i32 = 16384;
pub const STUDIO_TYPES: i32 = 32767;
pub const STUDIO_RLOOP: i32 = 32768;
pub const STUDIO_MOUTH: i32 = 4;
pub const STUDIO_LOOPING: i32 = 1;
pub const STUDIO_SNAP: i32 = 2;
pub const STUDIO_DELTA: i32 = 4;
pub const STUDIO_AUTOPLAY: i32 = 8;
pub const STUDIO_POST: i32 = 16;
pub const STUDIO_ALLZEROS: i32 = 32;
pub const STUDIO_BLENDPOSE: i32 = 64;
pub const STUDIO_CYCLEPOSE: i32 = 128;
pub const STUDIO_REALTIME: i32 = 256;
pub const STUDIO_LOCAL: i32 = 512;
pub const STUDIO_HIDDEN: i32 = 1024;
pub const STUDIO_IKRULES: i32 = 2048;
pub const STUDIO_ACTIVITY: i32 = 4096;
pub const STUDIO_EVENT: i32 = 8192;
pub const STUDIO_WORLD: i32 = 16384;
pub const STUDIO_LIGHT_FROM_ROOT: i32 = 32768;
pub const STUDIO_AL_POST: i32 = 1;
pub const STUDIO_AL_SPLINE: i32 = 2;
pub const STUDIO_AL_XFADE: i32 = 4;
pub const STUDIO_AL_NOBLEND: i32 = 8;
pub const STUDIO_AL_LOCAL: i32 = 16;
pub const STUDIO_AL_POSE: i32 = 32;
pub const BONE_ALWAYS_PROCEDURAL: i32 = 1;
pub const BONE_SCREEN_ALIGN_SPHERE: i32 = 2;
pub const BONE_SCREEN_ALIGN_CYLINDER: i32 = 4;
pub const BONE_JIGGLE_PROCEDURAL: i32 = 8;
pub const BONE_FIXED_ALIGNMENT: i32 = 16;
pub const BONE_USED_BY_HITBOX: i32 = 256;
pub const BONE_USED_BY_ATTACHMENT: i32 = 512;
pub const BONE_USED_BY_VERTEX: i32 = 1024;
pub const BONE_USED_BY_BONE_MERGE: i32 = 2048;
pub const STUDIO_PROC_AXISINTERP: i32 = 1;
pub const STUDIO_PROC_QUATINTERP: i32 = 2;
pub const STUDIO_PROC_AIMATBONE: i32 = 3;
pub const STUDIO_PROC_AIMATATTACH: i32 = 4;
pub const STUDIO_PROC_JIGGLE: i32 = 5;
pub const JIGGLE_IS_FLEXIBLE: i32 = 1;
pub const JIGGLE_IS_RIGID: i32 = 2;
pub const JIGGLE_HAS_YAW_CONSTRAINT: i32 = 4;
pub const JIGGLE_HAS_PITCH_CONSTRAINT: i32 = 8;
pub const JIGGLE_HAS_ANGLE_CONSTRAINT: i32 = 16;
pub const JIGGLE_HAS_LENGTH_CONSTRAINT: i32 = 32;
pub const JIGGLE_HAS_BASE_SPRING: i32 = 64;
pub const JIGGLE_IS_BOING: i32 = 128;
pub const MAXEVENTSTRING: i32 = 64;
pub const STUDIO_ATTACHMENT_LOCAL: i32 = 1;
pub const IK_SELF: i32 = 1;
pub const IK_WORLD: i32 = 2;
pub const IK_GROUND: i32 = 3;
pub const IK_RELEASE: i32 = 4;
pub const IK_ATTACHMENT: i32 = 5;
pub const IK_UNLATCH: i32 = 6;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct engine_studio_api_s {
    pub Mem_Calloc: ::core::option::Option<
        unsafe extern "C" fn(number: ::core::ffi::c_int, size: usize) -> *mut ::core::ffi::c_void,
    >,
    pub Cache_Check: ::core::option::Option<
        unsafe extern "C" fn(c: *mut cache_user_s) -> *mut ::core::ffi::c_void,
    >,
    pub LoadCacheFile: ::core::option::Option<
        unsafe extern "C" fn(path: *const ::core::ffi::c_char, cu: *mut cache_user_s),
    >,
    pub Mod_ForName: ::core::option::Option<
        unsafe extern "C" fn(
            name: *const ::core::ffi::c_char,
            crash_if_missing: ::core::ffi::c_int,
        ) -> *mut model_s,
    >,
    pub Mod_Extradata: ::core::option::Option<
        unsafe extern "C" fn(mod_: *mut model_s) -> *mut ::core::ffi::c_void,
    >,
    pub GetModelByIndex:
        ::core::option::Option<unsafe extern "C" fn(index: ::core::ffi::c_int) -> *mut model_s>,
    pub GetCurrentEntity: ::core::option::Option<unsafe extern "C" fn() -> *mut cl_entity_s>,
    pub PlayerInfo: ::core::option::Option<
        unsafe extern "C" fn(index: ::core::ffi::c_int) -> *mut player_info_s,
    >,
    pub GetPlayerState: ::core::option::Option<
        unsafe extern "C" fn(index: ::core::ffi::c_int) -> *mut entity_state_s,
    >,
    pub GetViewEntity: ::core::option::Option<unsafe extern "C" fn() -> *mut cl_entity_s>,
    pub GetTimes: ::core::option::Option<
        unsafe extern "C" fn(framecount: *mut ::core::ffi::c_int, current: *mut f64, old: *mut f64),
    >,
    pub GetCvar: ::core::option::Option<
        unsafe extern "C" fn(name: *const ::core::ffi::c_char) -> *mut cvar_s,
    >,
    pub GetViewInfo: ::core::option::Option<
        unsafe extern "C" fn(origin: *mut f32, upv: *mut f32, rightv: *mut f32, vpnv: *mut f32),
    >,
    pub GetChromeSprite: ::core::option::Option<unsafe extern "C" fn() -> *mut model_s>,
    pub GetModelCounters: ::core::option::Option<
        unsafe extern "C" fn(s: *mut *mut ::core::ffi::c_int, a: *mut *mut ::core::ffi::c_int),
    >,
    pub GetAliasScale: ::core::option::Option<unsafe extern "C" fn(x: *mut f32, y: *mut f32)>,
    pub StudioGetBoneTransform:
        ::core::option::Option<unsafe extern "C" fn() -> *mut *mut *mut *mut f32>,
    pub StudioGetLightTransform:
        ::core::option::Option<unsafe extern "C" fn() -> *mut *mut *mut *mut f32>,
    pub StudioGetAliasTransform:
        ::core::option::Option<unsafe extern "C" fn() -> *mut *mut *mut f32>,
    pub StudioGetRotationMatrix:
        ::core::option::Option<unsafe extern "C" fn() -> *mut *mut *mut f32>,
    pub StudioSetupModel: ::core::option::Option<
        unsafe extern "C" fn(
            bodypart: ::core::ffi::c_int,
            ppbodypart: *mut *mut ::core::ffi::c_void,
            ppsubmodel: *mut *mut ::core::ffi::c_void,
        ),
    >,
    pub StudioCheckBBox: ::core::option::Option<unsafe extern "C" fn() -> ::core::ffi::c_int>,
    pub StudioDynamicLight:
        ::core::option::Option<unsafe extern "C" fn(ent: *mut cl_entity_s, plight: *mut alight_s)>,
    pub StudioEntityLight: ::core::option::Option<unsafe extern "C" fn(plight: *mut alight_s)>,
    pub StudioSetupLighting: ::core::option::Option<unsafe extern "C" fn(plighting: *mut alight_s)>,
    pub StudioDrawPoints: ::core::option::Option<unsafe extern "C" fn()>,
    pub StudioDrawHulls: ::core::option::Option<unsafe extern "C" fn()>,
    pub StudioDrawAbsBBox: ::core::option::Option<unsafe extern "C" fn()>,
    pub StudioDrawBones: ::core::option::Option<unsafe extern "C" fn()>,
    pub StudioSetupSkin: ::core::option::Option<
        unsafe extern "C" fn(ptexturehdr: *mut ::core::ffi::c_void, index: ::core::ffi::c_int),
    >,
    pub StudioSetRemapColors: ::core::option::Option<
        unsafe extern "C" fn(top: ::core::ffi::c_int, bottom: ::core::ffi::c_int),
    >,
    pub SetupPlayerModel:
        ::core::option::Option<unsafe extern "C" fn(index: ::core::ffi::c_int) -> *mut model_s>,
    pub StudioClientEvents: ::core::option::Option<unsafe extern "C" fn()>,
    pub GetForceFaceFlags: ::core::option::Option<unsafe extern "C" fn() -> ::core::ffi::c_int>,
    pub SetForceFaceFlags: ::core::option::Option<unsafe extern "C" fn(flags: ::core::ffi::c_int)>,
    pub StudioSetHeader:
        ::core::option::Option<unsafe extern "C" fn(header: *mut ::core::ffi::c_void)>,
    pub SetRenderModel: ::core::option::Option<unsafe extern "C" fn(model: *mut model_s)>,
    pub SetupRenderer: ::core::option::Option<unsafe extern "C" fn(rendermode: ::core::ffi::c_int)>,
    pub RestoreRenderer: ::core::option::Option<unsafe extern "C" fn()>,
    pub SetChromeOrigin: ::core::option::Option<unsafe extern "C" fn()>,
    pub IsHardware: ::core::option::Option<unsafe extern "C" fn() -> ::core::ffi::c_int>,
    pub GL_StudioDrawShadow: ::core::option::Option<unsafe extern "C" fn()>,
    pub GL_SetRenderMode: ::core::option::Option<unsafe extern "C" fn(mode: ::core::ffi::c_int)>,
    pub StudioSetRenderamt:
        ::core::option::Option<unsafe extern "C" fn(iRenderamt: ::core::ffi::c_int)>,
    pub StudioSetCullState: ::core::option::Option<unsafe extern "C" fn(iCull: ::core::ffi::c_int)>,
    pub StudioRenderShadow: ::core::option::Option<
        unsafe extern "C" fn(
            iSprite: ::core::ffi::c_int,
            p1: *mut f32,
            p2: *mut f32,
            p3: *mut f32,
            p4: *mut f32,
        ),
    >,
}
pub type engine_studio_api_t = engine_studio_api_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct server_studio_api_s {
    pub Mem_Calloc: ::core::option::Option<
        unsafe extern "C" fn(number: ::core::ffi::c_int, size: usize) -> *mut ::core::ffi::c_void,
    >,
    pub Cache_Check: ::core::option::Option<
        unsafe extern "C" fn(c: *mut cache_user_s) -> *mut ::core::ffi::c_void,
    >,
    pub LoadCacheFile: ::core::option::Option<
        unsafe extern "C" fn(path: *const ::core::ffi::c_char, cu: *mut cache_user_s),
    >,
    pub Mod_Extradata: ::core::option::Option<
        unsafe extern "C" fn(mod_: *mut model_s) -> *mut ::core::ffi::c_void,
    >,
}
pub type server_studio_api_t = server_studio_api_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct r_studio_interface_s {
    pub version: ::core::ffi::c_int,
    pub StudioDrawModel: ::core::option::Option<
        unsafe extern "C" fn(flags: ::core::ffi::c_int) -> ::core::ffi::c_int,
    >,
    pub StudioDrawPlayer: ::core::option::Option<
        unsafe extern "C" fn(
            flags: ::core::ffi::c_int,
            pplayer: *mut entity_state_s,
        ) -> ::core::ffi::c_int,
    >,
}
pub type r_studio_interface_t = r_studio_interface_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sv_blending_interface_s {
    pub version: ::core::ffi::c_int,
    pub SV_StudioSetupBones: ::core::option::Option<
        unsafe extern "C" fn(
            pModel: *mut model_s,
            frame: f32,
            sequence: ::core::ffi::c_int,
            angles: *const vec3_t,
            origin: *const vec3_t,
            pcontroller: *const byte,
            pblending: *const byte,
            iBone: ::core::ffi::c_int,
            pEdict: *const edict_t,
        ),
    >,
}
pub type sv_blending_interface_t = sv_blending_interface_s;
#[repr(C)]
pub struct studiohdr_s {
    pub ident: i32,
    pub version: i32,
    pub name: [::core::ffi::c_char; 64usize],
    pub length: i32,
    pub eyeposition: vec3_t,
    pub min: vec3_t,
    pub max: vec3_t,
    pub bbmin: vec3_t,
    pub bbmax: vec3_t,
    pub flags: i32,
    pub numbones: i32,
    pub boneindex: i32,
    pub numbonecontrollers: i32,
    pub bonecontrollerindex: i32,
    pub numhitboxes: i32,
    pub hitboxindex: i32,
    pub numseq: i32,
    pub seqindex: i32,
    pub numseqgroups: i32,
    pub seqgroupindex: i32,
    pub numtextures: i32,
    pub textureindex: i32,
    pub texturedataindex: i32,
    pub numskinref: i32,
    pub numskinfamilies: i32,
    pub skinindex: i32,
    pub numbodyparts: i32,
    pub bodypartindex: i32,
    pub numattachments: i32,
    pub attachmentindex: i32,
    pub studiohdr2index: i32,
    pub unused: i32,
    pub unused2: i32,
    pub unused3: i32,
    pub numtransitions: i32,
    pub transitionindex: i32,
}
pub type studiohdr_t = studiohdr_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct studiohdr2_t {
    pub numposeparameters: i32,
    pub poseparamindex: i32,
    pub numikautoplaylocks: i32,
    pub ikautoplaylockindex: i32,
    pub numikchains: i32,
    pub ikchainindex: i32,
    pub keyvalueindex: i32,
    pub keyvaluesize: i32,
    pub numhitboxsets: i32,
    pub hitboxsetindex: i32,
    pub unused: [i32; 6usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct studioseqhdr_t {
    pub id: i32,
    pub version: i32,
    pub name: [::core::ffi::c_char; 64usize],
    pub length: i32,
}
#[repr(C)]
pub struct mstudiobone_s {
    pub name: [::core::ffi::c_char; 32usize],
    pub parent: i32,
    pub unused: i32,
    pub bonecontroller: [i32; 6usize],
    pub value: [vec_t; 6usize],
    pub scale: [vec_t; 6usize],
}
#[repr(C)]
pub struct mstudioaxisinterpbone_t {
    pub control: i32,
    pub axis: i32,
    pub pos: [vec3_t; 6usize],
    pub quat: [vec4_t; 6usize],
}
#[repr(C)]
pub struct mstudioquatinterpinfo_t {
    pub inv_tolerance: vec_t,
    pub trigger: vec4_t,
    pub pos: vec3_t,
    pub quat: vec4_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioquatinterpbone_t {
    pub control: i32,
    pub numtriggers: i32,
    pub triggerindex: i32,
}
#[repr(C)]
pub struct mstudioboneinfo_t {
    pub poseToBone: [[vec_t; 4usize]; 3usize],
    pub qAlignment: vec4_t,
    pub proctype: i32,
    pub procindex: i32,
    pub quat: vec4_t,
    pub reserved: [i32; 10usize],
}
#[repr(C)]
pub struct mstudiojigglebone_t {
    pub flags: i32,
    pub length: vec_t,
    pub tipMass: vec_t,
    pub yawStiffness: vec_t,
    pub yawDamping: vec_t,
    pub pitchStiffness: vec_t,
    pub pitchDamping: vec_t,
    pub alongStiffness: vec_t,
    pub alongDamping: vec_t,
    pub angleLimit: vec_t,
    pub minYaw: vec_t,
    pub maxYaw: vec_t,
    pub yawFriction: vec_t,
    pub yawBounce: vec_t,
    pub minPitch: vec_t,
    pub maxPitch: vec_t,
    pub pitchFriction: vec_t,
    pub pitchBounce: vec_t,
    pub baseMass: vec_t,
    pub baseStiffness: vec_t,
    pub baseDamping: vec_t,
    pub baseMinLeft: vec_t,
    pub baseMaxLeft: vec_t,
    pub baseLeftFriction: vec_t,
    pub baseMinUp: vec_t,
    pub baseMaxUp: vec_t,
    pub baseUpFriction: vec_t,
    pub baseMinForward: vec_t,
    pub baseMaxForward: vec_t,
    pub baseForwardFriction: vec_t,
    pub boingImpactSpeed: vec_t,
    pub boingImpactAngle: vec_t,
    pub boingDampingRate: vec_t,
    pub boingFrequency: vec_t,
    pub boingAmplitude: vec_t,
}
#[repr(C)]
pub struct mstudioaimatbone_t {
    pub parent: i32,
    pub aim: i32,
    pub aimvector: vec3_t,
    pub upvector: vec3_t,
    pub basepos: vec3_t,
}
#[repr(C)]
pub struct mstudiobonecontroller_t {
    pub bone: i32,
    pub type_: i32,
    pub start: vec_t,
    pub end: vec_t,
    pub unused: i32,
    pub index: i32,
}
#[repr(C)]
pub struct mstudiobbox_t {
    pub bone: i32,
    pub group: i32,
    pub bbmin: vec3_t,
    pub bbmax: vec3_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudiohitboxset_t {
    pub name: [::core::ffi::c_char; 32usize],
    pub numhitboxes: i32,
    pub hitboxindex: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioseqgroup_t {
    pub label: [::core::ffi::c_char; 32usize],
    pub name: [::core::ffi::c_char; 64usize],
    pub unused: i32,
    pub unused2: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioevent_s {
    pub frame: i32,
    pub event: i32,
    pub unused: i32,
    pub options: [::core::ffi::c_char; 64usize],
}
pub type mstudioevent_t = mstudioevent_s;
#[repr(C)]
pub struct mstudioattachment_t {
    pub unused: [::core::ffi::c_char; 32usize],
    pub flags: i32,
    pub bone: i32,
    pub org: vec3_t,
    pub vectors: [vec3_t; 3usize],
}
#[repr(C)]
pub struct mstudioikerror_t {
    pub scale: [vec_t; 6usize],
    pub offset: [u16; 6usize],
}
#[repr(C)]
pub struct mstudioikrule_t {
    pub index: i32,
    pub type_: i32,
    pub chain: i32,
    pub bone: i32,
    pub attachment: i32,
    pub slot: i32,
    pub height: vec_t,
    pub radius: vec_t,
    pub floor: vec_t,
    pub pos: vec3_t,
    pub quat: vec4_t,
    pub ikerrorindex: i32,
    pub iStart: i32,
    pub start: vec_t,
    pub peak: vec_t,
    pub tail: vec_t,
    pub end: vec_t,
    pub contact: vec_t,
    pub drop: vec_t,
    pub top: vec_t,
    pub unused: [i32; 4usize],
}
#[repr(C)]
pub struct mstudioiklock_t {
    pub chain: i32,
    pub flPosWeight: vec_t,
    pub flLocalQWeight: vec_t,
    pub flags: i32,
    pub unused: [i32; 4usize],
}
#[repr(C)]
pub struct mstudiomovement_t {
    pub endframe: i32,
    pub motionflags: i32,
    pub v0: vec_t,
    pub v1: vec_t,
    pub angle: vec_t,
    pub vector: vec3_t,
    pub position: vec3_t,
}
#[repr(C)]
pub struct mstudioanimdesc_t {
    pub label: [::core::ffi::c_char; 32usize],
    pub fps: vec_t,
    pub flags: i32,
    pub numframes: i32,
    pub nummovements: i32,
    pub movementindex: i32,
    pub numikrules: i32,
    pub ikruleindex: i32,
    pub unused: [i32; 8usize],
}
#[repr(C)]
pub struct mstudioautolayer_t {
    pub iSequence: i16,
    pub iPose: i16,
    pub flags: i32,
    pub start: vec_t,
    pub peak: vec_t,
    pub tail: vec_t,
    pub end: vec_t,
}
#[repr(C)]
pub struct mstudioseqdesc_s {
    pub label: [::core::ffi::c_char; 32usize],
    pub fps: vec_t,
    pub flags: i32,
    pub activity: i32,
    pub actweight: i32,
    pub numevents: i32,
    pub eventindex: i32,
    pub numframes: i32,
    pub weightlistindex: i32,
    pub iklockindex: i32,
    pub motiontype: i32,
    pub motionbone: i32,
    pub linearmovement: vec3_t,
    pub autolayerindex: i32,
    pub keyvalueindex: i32,
    pub bbmin: vec3_t,
    pub bbmax: vec3_t,
    pub numblends: i32,
    pub animindex: i32,
    pub blendtype: [i32; 2usize],
    pub blendstart: [vec_t; 2usize],
    pub blendend: [vec_t; 2usize],
    pub groupsize: [u8; 2usize],
    pub numautolayers: u8,
    pub numiklocks: u8,
    pub seqgroup: i32,
    pub entrynode: i32,
    pub exitnode: i32,
    pub nodeflags: u8,
    pub cycleposeindex: u8,
    pub fadeintime: u8,
    pub fadeouttime: u8,
    pub animdescindex: i32,
}
pub type mstudioseqdesc_t = mstudioseqdesc_s;
#[repr(C)]
pub struct mstudioposeparamdesc_t {
    pub name: [::core::ffi::c_char; 32usize],
    pub flags: i32,
    pub start: vec_t,
    pub end: vec_t,
    pub loop_: vec_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioanim_s {
    pub offset: [u16; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union mstudioanimvalue_t {
    pub num: mstudioanimvalue_t__bindgen_ty_1,
    pub value: i16,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioanimvalue_t__bindgen_ty_1 {
    pub valid: u8,
    pub total: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudiobodyparts_t {
    pub name: [::core::ffi::c_char; 64usize],
    pub nummodels: i32,
    pub base: i32,
    pub modelindex: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudiotex_s {
    pub name: [::core::ffi::c_char; 64usize],
    pub flags: u32,
    pub width: i32,
    pub height: i32,
    pub index: i32,
}
pub type mstudiotexture_t = mstudiotex_s;
#[repr(C)]
pub struct mstudioiklink_t {
    pub bone: i32,
    pub kneeDir: vec3_t,
    pub unused0: vec3_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioikchain_t {
    pub name: [::core::ffi::c_char; 32usize],
    pub linktype: i32,
    pub numlinks: i32,
    pub linkindex: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudioboneweight_t {
    pub weight: [u8; 4usize],
    pub bone: [i8; 4usize],
}
#[repr(C)]
pub struct mstudiomodel_t {
    pub name: [::core::ffi::c_char; 64usize],
    pub unused: i32,
    pub unused2: vec_t,
    pub nummesh: i32,
    pub meshindex: i32,
    pub numverts: i32,
    pub vertinfoindex: i32,
    pub vertindex: i32,
    pub numnorms: i32,
    pub norminfoindex: i32,
    pub normindex: i32,
    pub blendvertinfoindex: i32,
    pub blendnorminfoindex: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudiomesh_t {
    pub numtris: i32,
    pub triindex: i32,
    pub skinref: i32,
    pub numnorms: i32,
    pub unused: i32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mstudiotrivert_t {
    pub vertindex: i16,
    pub normindex: i16,
    pub s: i16,
    pub t: i16,
}