Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- // lazy library includes
- #pragma comment(lib, "hkBase.lib")
- #pragma comment(lib, "hkSerialize.lib")
- #pragma comment(lib, "hkSceneData.lib")
- #pragma comment(lib, "hkVisualize.lib")
- #pragma comment(lib, "hkCompat.lib")
- #pragma comment(lib, "hkpCollide.lib")
- #pragma comment(lib, "hkpConstraintSolver.lib")
- #pragma comment(lib, "hkpDynamics.lib")
- #pragma comment(lib, "hkpInternal.lib")
- #pragma comment(lib, "hkpUtilities.lib")
- #pragma comment(lib, "hkpVehicle.lib")
- #pragma comment(lib, "hkaAnimation.lib")
- #pragma comment(lib, "hkaInternal.lib")
- #pragma comment(lib, "hkaRagdoll.lib")
- #pragma comment(lib, "hkgBridge.lib")
- #pragma comment(lib, "hkgCommon.lib")
- #pragma comment(lib, "hkgDx9.lib")
- #pragma comment(lib, "hkgDx9s.lib")
- #pragma comment(lib, "hkgOgl.lib")
- #pragma comment(lib, "dxguid.lib")
- #pragma comment(lib, "opengl32.lib")
- // Include the hkbase header before any other hkbase includes.
- #include <Common/Base/hkBase.h>
- #include <Common/Base/Types/Geometry/hkStridedVertices.h>
- #include <Common/Base/System/hkBaseSystem.h>
- #include <Common/Base/Memory/Memory/Pool/hkPoolMemory.h>
- #include <Common/Base/Memory/Memory/Debug/hkDebugMemory.h>
- #include <Common/Base/System/Io/IStream/hkIstream.h>
- // Include the hkdynamics header before any other hkdynamics includes.
- #include <Physics/Dynamics/hkpDynamics.h>
- #include <Physics/Dynamics/World/hkpWorld.h>
- #include <Physics/Dynamics/World/Util/hkpWorldOperationUtil.h>
- #include <Physics/Dynamics/Entity/hkpRigidBody.h>
- #include <Physics/Dynamics/Entity/hkpRigidBodyCInfo.h>
- #include <Physics/Dynamics/Entity/hkpEntity.h>
- // Include the hkcollide header before any other hkcollide includes.
- #include <Physics/Collide/hkpCollide.h>
- #include <Physics/Collide/Shape/hkpShape.h>
- #include <Physics/Collide/Shape/Convex/hkpConvexShape.h>
- #include <Physics/Collide/Shape/Convex/ConvexVertices/hkpConvexVerticesShape.h>
- #include <Physics/Collide/Shape/Convex/Box/hkpBoxShape.h>
- #include <Physics/Collide/Shape/Convex/Sphere/hkpSphereShape.h>
- #include <Physics/Collide/Shape/Convex/Cylinder/hkpCylinderShape.h>
- #include <Physics/Collide/Dispatch/hkpAgentRegisterUtil.h>
- // Utilities
- #include <Physics/Utilities/Dynamics/Inertia/hkpInertiaTensorComputer.h>
- extern "C" int printf(const char* fmt, ...); // For printf, used by the error handler
- // Stub function to print any error report functionality to stdout
- // std::puts(...) could be used here alternatively
- static void ReportError(const char* str, void* errorOutputObject)
- {
- printf("%s", str);
- }
- // allows for input of game objects into havok sdk
- class Havok
- {
- public:
- hkpWorld* World;
- List<Object*> Objects;
- hkThreadMemory* ThreadMemory;
- Havok(void);
- ~Havok(void);
- void AddObject(Object* object);
- void RemoveObject(Object* object);
- void Update(float timestep);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement