PlatformMesh.cpp 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #include "PlatformMesh.h"
  2. #include "FTTUPtr.h"
  3. #include "CFTTRenderHelper.h"
  4. #include "CFTTShaderBuiltInConstants.h"
  5. static float g_f309C50[6] = {1.0, 1.0, 1.0, 0.0, 0.0, 0.0};
  6. //---------------------------------------------------------------------------------------------------------------------------------------------
  7. //0021B304
  8. void PlatformMesh_Free(CFTTPlatformMesh *) {
  9. }
  10. //---------------------------------------------------------------------------------------------------------------------------------------------
  11. //0021B340 //^_^
  12. void PlatformMesh_PerMeshSetup(CFTTPlatformMesh const *pPlatformMesh1, CFTTVector32x4 const *pFTTVector32x42, CFTTVector32x4 const *pFTTVector32x43) {
  13. }
  14. //---------------------------------------------------------------------------------------------------------------------------------------------
  15. //0021b370 ^_^
  16. void PlatformMesh_Render(CFTTPlatformMesh* r0_pPlatformMesh1, int r1_i, unsigned short r2_us, unsigned int r3_u, unsigned int sp10_u)
  17. {
  18. CFTTModel_struct_14* r12_list_model = r0_pPlatformMesh1->uOPData_44.list_model;
  19. if (r2_us ==0xFFFF )
  20. r2_us = r12_list_model[r1_i].tStr12_2.us_0;
  21. if (r3_u == 0xFFFFFFFF)
  22. r3_u = r12_list_model[r1_i].tStr12_2.field_6;
  23. if (sp10_u == 0xFFFFFFFF)
  24. sp10_u = r12_list_model[r1_i].tStr12_2.field_2 *3;
  25. return ((CFTTRenderHelper*)r0_pPlatformMesh1->pCFTTRenderHelper_94.pType_0)->Render( &CFTTShaderBuiltInConstants::ms_matWorld, r2_us, r3_u,sp10_u);
  26. }
  27. //---------------------------------------------------------------------------------------------------------------------------------------------
  28. //0021b3c8 ^_^
  29. void PlatformMesh_PerMeshRestore(CFTTPlatformMesh const *pMesh) {
  30. }
  31. //---------------------------------------------------------------------------------------------------------------------------------------------
  32. //0021B3F0 //^_^
  33. void PlatformMesh_CreateVolatileResources(CFTTPlatformMesh *p_cfttplatformesh_r0_arg, bool b_r1_arg) {
  34. }
  35. //---------------------------------------------------------------------------------------------------------------------------------------------
  36. //0021B44A
  37. void PlatformMesh_DeleteVolatileResources(CFTTPlatformMesh *, bool) {
  38. }
  39. //---------------------------------------------------------------------------------------------------------------------------------------------
  40. //0021B452
  41. void PlatformMesh_CreateManagedResources(CFTTPlatformMesh *, bool) {
  42. // empty
  43. }
  44. //---------------------------------------------------------------------------------------------------------------------------------------------
  45. //0021B454
  46. void PlatformMesh_DeleteManagedResources(CFTTPlatformMesh *, bool) {
  47. // empty
  48. }
  49. //---------------------------------------------------------------------------------------------------------------------------------------------
  50. //0021B456 //^_^
  51. void PlatformMesh_SetVerts(CFTTPlatformMesh *p_cfttplatformesh_r0) {
  52. }
  53. //---------------------------------------------------------------------------------------------------------------------------------------------
  54. //0021b478 ^_^
  55. void PlatformMesh_SetIndices(CFTTPlatformMesh *pPlatformMesh1) {
  56. }
  57. //---------------------------------------------------------------------------------------------------------------------------------------------
  58. //0x0021b488 ^_- 测试8关无异常
  59. void PlatformMesh_ToModel(CFTTPlatformMesh *pfTTPlatformMesh1, TFTTModel *pfTTModel2, EMeshModelFlags eMeshModelFlags3) {
  60. //0021B488
  61. return;
  62. }
  63. //---------------------------------------------------------------------------------------------------------------------------------------------
  64. //0021BA38
  65. void PlatformMesh_FromModel(CFTTPlatformMesh *, CFTTPlatformMesh *, TFTTModel *, EMeshModelFlags) {
  66. }
  67. //---------------------------------------------------------------------------------------------------------------------------------------------
  68. /*
  69. 0021B304 PlatformMesh_Free
  70. 0021BA38 PlatformMesh_FromModel
  71. 0021B44A PlatformMesh_DeleteVolatileResources
  72. */