Skip to content

Instantly share code, notes, and snippets.

@Ohmnivore
Created March 5, 2016 06:30
Show Gist options
  • Save Ohmnivore/081488802e5696746391 to your computer and use it in GitHub Desktop.
Save Ohmnivore/081488802e5696746391 to your computer and use it in GitHub Desktop.
Typedefs for every cpp.Pointer<T> occurence in Bullet.hx
package blip.util;
import haxebullet.Bullet;
import cpp.Pointer;
/**
* ...
* @author Ohmnivore
*/
#if cpp
typedef BulletVector3 = Pointer<BtVector3>;
#end
#if js
typedef BulletVector3 = BtVector3;
#end
#if cpp
typedef BulletQuaternion = Pointer<BtQuaternion>;
#end
#if js
typedef BulletQuaternion = BtQuaternion;
#end
#if cpp
typedef BulletTransform = Pointer<BtTransform>;
#end
#if js
typedef BulletTransform = BtTransform;
#end
#if cpp
typedef BulletDefaultMotionState = Pointer<BtDefaultMotionState>;
#end
#if js
typedef BulletDefaultMotionState = BtDefaultMotionState;
#end
#if cpp
typedef BulletRigidBodyConstructionInfo = Pointer<BtRigidBodyConstructionInfo>;
#end
#if js
typedef BulletRigidBodyConstructionInfo = BtRigidBodyConstructionInfo;
#end
#if cpp
typedef BulletRigidBody = Pointer<BtRigidBody>;
#end
#if js
typedef BulletRigidBody = BtRigidBody;
#end
#if cpp
typedef BulletDefaultCollisionConfiguration = Pointer<BtDefaultCollisionConfiguration>;
#end
#if js
typedef BulletDefaultCollisionConfiguration = BtDefaultCollisionConfiguration;
#end
#if cpp
typedef BulletCollisionDispatcher = Pointer<BtCollisionDispatcher>;
#end
#if js
typedef BulletCollisionDispatcher = BtCollisionDispatcher;
#end
#if cpp
typedef BulletDbvtBroadphase = Pointer<BtDbvtBroadphase>;
#end
#if js
typedef BulletDbvtBroadphase = BtDbvtBroadphase;
#end
#if cpp
typedef BulletAxisSweep3 = Pointer<BtAxisSweep3>;
#end
#if js
typedef BulletAxisSweep3 = BtAxisSweep3;
#end
#if cpp
typedef BulletSequentialImpulseConstraintSolver = Pointer<BtSequentialImpulseConstraintSolver>;
#end
#if js
typedef BulletSequentialImpulseConstraintSolver = BtSequentialImpulseConstraintSolver;
#end
#if cpp
typedef BulletRayResultCallback = Pointer<RayResultCallback>;
#end
#if js
typedef BulletRayResultCallback = RayResultCallback;
#end
#if cpp
typedef BulletClosestRayResultCallback = Pointer<ClosestRayResultCallback>;
#end
#if js
typedef BulletClosestRayResultCallback = ClosestRayResultCallback;
#end
#if cpp
typedef BulletDynamicsWorld = Pointer<BtDynamicsWorld>;
#end
#if js
typedef BulletDynamicsWorld = BtDynamicsWorld;
#end
#if cpp
typedef BulletDiscreteDynamicsWorld = Pointer<BtDiscreteDynamicsWorld>;
#end
#if js
typedef BulletDiscreteDynamicsWorld = BtDiscreteDynamicsWorld;
#end
#if cpp
typedef BulletSimpleDynamicsWorld = Pointer<BtSimpleDynamicsWorld>;
#end
#if js
typedef BulletSimpleDynamicsWorld = BtSimpleDynamicsWorld;
#end
#if cpp
typedef BulletCompoundShape = Pointer<BtCompoundShape>;
#end
#if js
typedef BulletCompoundShape = BtCompoundShape;
#end
#if cpp
typedef BulletCollisionShape = Pointer<BtCollisionShape>;
#end
#if js
typedef BulletCollisionShape = BtCollisionShape;
#end
#if cpp
typedef BulletConvexHullShape = Pointer<BtConvexHullShape>;
#end
#if js
typedef BulletConvexHullShape = BtConvexHullShape;
#end
#if cpp
typedef BulletStridingMeshInterface = Pointer<BtStridingMeshInterface>;
#end
#if js
typedef BulletStridingMeshInterface = BtStridingMeshInterface;
#end
#if cpp
typedef BulletIndexedMesh = Pointer<BtIndexedMesh>;
#end
#if js
typedef BulletIndexedMesh = BtIndexedMesh;
#end
#if cpp
typedef BulletTriangleMesh = Pointer<BtTriangleMesh>;
#end
#if js
typedef BulletTriangleMesh = BtTriangleMesh;
#end
#if cpp
typedef BulletVehicleTuning = Pointer<BtVehicleTuning>;
#end
#if js
typedef BulletVehicleTuning = BtVehicleTuning;
#end
#if cpp
typedef BulletVehicleRaycaster = Pointer<BtVehicleRaycaster>;
#end
#if js
typedef BulletVehicleRaycaster = BtVehicleRaycaster;
#end
#if cpp
typedef BulletWheelInfoConstructionInfo = Pointer<BtWheelInfoConstructionInfo>;
#end
#if js
typedef BulletWheelInfoConstructionInfo = BtWheelInfoConstructionInfo;
#end
#if cpp
typedef BulletWheelInfo = Pointer<BtWheelInfo>;
#end
#if js
typedef BulletWheelInfo = BtWheelInfo;
#end
#if cpp
typedef BulletRaycastVehicle = Pointer<BtRaycastVehicle>;
#end
#if js
typedef BulletRaycastVehicle = BtRaycastVehicle;
#end
#if cpp
typedef BulletPersistentManifold = Pointer<BtPersistentManifold>;
#end
#if js
typedef BulletPersistentManifold = BtPersistentManifold;
#end
#if cpp
typedef BulletGeneric6DofConstraint = Pointer<BtGeneric6DofConstraint>;
#end
#if js
typedef BulletGeneric6DofConstraint = BtGeneric6DofConstraint;
#end
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment