Rapier C — 2D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
rapier_helpers.h
Go to the documentation of this file.
1
5#ifndef RAPIER_HELPERS_H
6#define RAPIER_HELPERS_H
7#include "rapier.h"
8
9/* Value initialization functions are exported by rapier.h. */
10
11/* Explicit invalid values; zero-initialized Rapier handles are not invalid.
12 * These constants have internal linkage and own no resources. */
14static const RAPIER_TYPE(RigidBodyHandle) RAPIER_CONST(INVALID_RIGID_BODY_HANDLE) = {NULL, UINT32_MAX, UINT32_MAX};
16static const RAPIER_TYPE(ColliderHandle) RAPIER_CONST(INVALID_COLLIDER_HANDLE) = {NULL, UINT32_MAX, UINT32_MAX};
18static const RAPIER_TYPE(ImpulseJointHandle) RAPIER_CONST(INVALID_IMPULSE_JOINT_HANDLE) = {NULL, UINT32_MAX, UINT32_MAX};
20static const RAPIER_TYPE(MultibodyJointHandle) RAPIER_CONST(INVALID_MULTIBODY_JOINT_HANDLE) = {NULL, UINT32_MAX, UINT32_MAX};
22static const RAPIER_TYPE(SoftBodyHandle) RAPIER_CONST(INVALID_SOFT_BODY_HANDLE) = {NULL, UINT32_MAX, UINT32_MAX};
23
24#endif
Rapier C ABI.
#define RAPIER_CONST(name)
Select an R2/R3 public constant name.
Definition rapier.h:23
#define RAPIER_TYPE(name)
Select an R2/R3 public type name.
Definition rapier.h:21