November 25, 2020, 05:54:00 AM

Author Topic: [bb] Blitz3dSDK - C/C++ - Physx's Rubux Wrapper FINAL Part 3/3 - End by ZJP [ 1+ years ago ]  (Read 818 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
Title : Blitz3dSDK - C/C++ - Physx's Rubux Wrapper FINAL Part 3/3  - End
Author : ZJP
Posted : 1+ years ago

Description : Part 1/3 here :
<a href="editcodecdd8.html?code=2077" target="_blank">http://www.blitzbasic.com/codearcs/editcode.php?code=2077[/url]
Part 2/3 here :
<a href="editcode4ae8.html?code=2078" target="_blank">http://www.blitzbasic.com/codearcs/editcode.php?code=2078[/url]


Code :
Code: BlitzBasic
  1. // Final definition
  2.  
  3. typedef int(WINAPI *DLL_pxGetNumberAllBody)();
  4. DLL_pxGetNumberAllBody pxGetNumberAllBody;
  5. pxGetNumberAllBody = (DLL_pxGetNumberAllBody)GetProcAddress(hDLL,"_pxGetNumberAllBody@0");
  6. // Use ==> int result = pxGetNumberAllBody();
  7.  
  8. typedef int(WINAPI *DLL_pxCreateWorld)(int plane, char *password);
  9. DLL_pxCreateWorld pxCreateWorld;
  10. pxCreateWorld = (DLL_pxCreateWorld)GetProcAddress(hDLL,"_pxCreateWorld@8");
  11. // Use ==> int result = pxCreateWorld(int plane, char *password);
  12.  
  13. typedef void(WINAPI *DLL_pxDestroyWorld)();
  14. DLL_pxDestroyWorld pxDestroyWorld;
  15. pxDestroyWorld = (DLL_pxDestroyWorld)GetProcAddress(hDLL,"_pxDestroyWorld@0");
  16. // Use ==> pxDestroyWorld();
  17.  
  18. typedef void(WINAPI *DLL_pxRenderPhysic)(float time, int sinc);
  19. DLL_pxRenderPhysic pxRenderPhysic;
  20. pxRenderPhysic = (DLL_pxRenderPhysic)GetProcAddress(hDLL,"_pxRenderPhysic@8");
  21. // Use ==> pxRenderPhysic(float time, int sinc);
  22.  
  23. typedef void(WINAPI *DLL_pxSetTiming)(float maxTimeStep, int maxIter, int StepMethod);
  24. DLL_pxSetTiming pxSetTiming;
  25. pxSetTiming = (DLL_pxSetTiming)GetProcAddress(hDLL,"_pxSetTiming@12");
  26. // Use ==> pxSetTiming(float maxTimeStep, int maxIter, int StepMethod);
  27.  
  28. typedef void(WINAPI *DLL_pxSDKSetParameter)(float param);
  29. DLL_pxSDKSetParameter pxSDKSetParameter;
  30. pxSDKSetParameter = (DLL_pxSDKSetParameter)GetProcAddress(hDLL,"_pxSDKSetParameter@4");
  31. // Use ==> pxSDKSetParameter(float param);
  32.  
  33. typedef void(WINAPI *DLL_pxSetPause)(int pause);
  34. DLL_pxSetPause pxSetPause;
  35. pxSetPause = (DLL_pxSetPause)GetProcAddress(hDLL,"_pxSetPause@4");
  36. // Use ==> pxSetPause(int pause);
  37.  
  38. typedef int(WINAPI *DLL_pxChekPPU)();
  39. DLL_pxChekPPU pxChekPPU;
  40. pxChekPPU = (DLL_pxChekPPU)GetProcAddress(hDLL,"_pxChekPPU@0");
  41. // Use ==> int result = pxChekPPU();
  42.  
  43. typedef int(WINAPI *DLL_pxChekPPUMode)();
  44. DLL_pxChekPPUMode pxChekPPUMode;
  45. pxChekPPUMode = (DLL_pxChekPPUMode)GetProcAddress(hDLL,"_pxChekPPUMode@0");
  46. // Use ==> int result = pxChekPPUMode();
  47.  
  48. typedef void(WINAPI *DLL_pxSetHardwareSimulation)(int mode);
  49. DLL_pxSetHardwareSimulation pxSetHardwareSimulation;
  50. pxSetHardwareSimulation = (DLL_pxSetHardwareSimulation)GetProcAddress(hDLL,"_pxSetHardwareSimulation@4");
  51. // Use ==> pxSetHardwareSimulation(int mode);
  52.  
  53. typedef int(WINAPI *DLL_pxCreateScene)();
  54. DLL_pxCreateScene pxCreateScene;
  55. pxCreateScene = (DLL_pxCreateScene)GetProcAddress(hDLL,"_pxCreateScene@0");
  56. // Use ==> int result = pxCreateScene();
  57.  
  58. typedef void(WINAPI *DLL_pxSceneChange)();
  59. DLL_pxSceneChange pxSceneChange;
  60. pxSceneChange = (DLL_pxSceneChange)GetProcAddress(hDLL,"_pxSceneChange@4");
  61. // Use ==> pxSceneChange();
  62.  
  63. typedef int(WINAPI *DLL_pxBodySetEntity)(int entity, int body);
  64. DLL_pxBodySetEntity pxBodySetEntity;
  65. pxBodySetEntity = (DLL_pxBodySetEntity)GetProcAddress(hDLL,"_pxBodySetEntity@8");
  66. // Use ==> int result = pxBodySetEntity(int entity, int body);
  67.  
  68. typedef void(WINAPI *DLL_pxBodyAddEntity)(int entity, int body);
  69. DLL_pxBodyAddEntity pxBodyAddEntity;
  70. pxBodyAddEntity = (DLL_pxBodyAddEntity)GetProcAddress(hDLL,"_pxBodyAddEntity@8");
  71. // Use ==> pxBodyAddEntity(int entity, int body);
  72.  
  73. typedef float(WINAPI *DLL_pxGetAngleBetweenVec)(float v1x, float v1y, float v1z, float v2x, float v2y, float v2z);
  74. DLL_pxGetAngleBetweenVec pxGetAngleBetweenVec;
  75. pxGetAngleBetweenVec = (DLL_pxGetAngleBetweenVec)GetProcAddress(hDLL,"_pxGetAngleBetweenVec@24");
  76. // Use ==> float result = pxGetAngleBetweenVec(float v1x, float v1y, float v1z, float v2x, float v2y, float v2z);
  77.  
  78. // End


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal