2
0

PhysX.Import.pas 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // The graphics engine GLScene
  3. //
  4. unit PhysX.Import;
  5. interface
  6. uses
  7. Winapi.Windows;
  8. const
  9. {$IFDEF WIN32}
  10. PhysXDLL = 'PhysXwrap.dll';
  11. {$ELSE}
  12. PhysXDLL = 'PhysXwrap.dll';
  13. {$ENDIF}
  14. procedure SDK_Version(major, minor, bugfix: pdword); stdcall; external PhysXDLL;
  15. procedure InitNx; stdcall; external PhysXDLL;
  16. procedure ReleaseNx; stdcall; external PhysXDLL;
  17. procedure SimulateNx(dt: single); stdcall; external PhysXDLL;
  18. procedure GetResultsNx; stdcall; external PhysXDLL;
  19. procedure ActorCount(count: pdword); stdcall; external PhysXDLL;
  20. procedure GetActor(index: dword; obj: pdword); stdcall; external PhysXDLL;
  21. procedure GetActorGlobalPosition(actor: dword; x,y,z: psingle); stdcall; external PhysXDLL;
  22. procedure SetActorGlobalPosition(actor: dword; x,y,z: single); stdcall; external PhysXDLL;
  23. procedure GetActorGlobalOrientation(actor: dword; x,y,z,w: psingle); stdcall; external PhysXDLL;
  24. procedure SetActorGlobalOrientation(actor: dword; x,y,z,w: single); stdcall; external PhysXDLL;
  25. procedure GetActorCMassGlobalPosition(actor: dword; x,y,z: psingle); stdcall; external PhysXDLL;
  26. procedure SetActorCMassGlobalPosition(actor: dword; x,y,z: single); stdcall; external PhysXDLL;
  27. procedure GetActorMass(actor: dword; m: psingle); stdcall; external PhysXDLL;
  28. procedure SetActorMass(actor: dword; m: single); stdcall; external PhysXDLL;
  29. procedure ActorAddForce(actor: dword; x,y,z: single); stdcall; external PhysXDLL;
  30. procedure CreateGroundPlane(actor: pdword); stdcall; external PhysXDLL;
  31. procedure CreateBox(actor: pdword; sx,sy,sz,dens: single); stdcall; external PhysXDLL;
  32. procedure CreateSphere(actor: pdword; rad: single; dens: single); stdcall; external PhysXDLL;
  33. procedure CreateCylinder(actor: pdword; rad: single; height: single; dens: single); stdcall; external PhysXDLL;
  34. //--------------------------------------------
  35. implementation
  36. //--------------------------------------------
  37. end.