Просмотр исходного кода

Implement PhysicsSystem::DrawConstraints

Lucien Greathouse 5 месяцев назад
Родитель
Сommit
37703e2e0c
2 измененных файлов с 12 добавлено и 0 удалено
  1. 4 0
      JoltC/Functions.h
  2. 8 0
      JoltCImpl/JoltC.cpp

+ 4 - 0
JoltC/Functions.h

@@ -1322,6 +1322,10 @@ JPC_API void JPC_PhysicsSystem_DrawBodies(
 	JPC_DebugRendererSimple* inRenderer, // FIXME: un-specialize
 	const void* inBodyFilter); // FIXME: BodyDrawFilter
 
+JPC_API void JPC_PhysicsSystem_DrawConstraints(
+	JPC_PhysicsSystem* self,
+	JPC_DebugRendererSimple* inRenderer); // FIXME: un-specialize
+
 JPC_API void JPC_PhysicsSystem_SetSimShapeFilter(JPC_PhysicsSystem* self, const JPC_SimShapeFilter* inShapeFilter);
 
 #ifdef __cplusplus

+ 8 - 0
JoltCImpl/JoltC.cpp

@@ -2485,6 +2485,14 @@ JPC_API void JPC_PhysicsSystem_DrawBodies(
 	to_jph(self)->DrawBodies(to_jph(*inSettings), to_jph(inRenderer), nullptr);
 }
 
+JPC_API void JPC_PhysicsSystem_DrawConstraints(
+	JPC_PhysicsSystem* self,
+	JPC_DebugRendererSimple* inRenderer)
+{
+	to_jph(self)->DrawConstraints(to_jph(inRenderer));
+}
+
+
 JPC_API void JPC_PhysicsSystem_SetSimShapeFilter(
 	JPC_PhysicsSystem* self,
 	const JPC_SimShapeFilter* inShapeFilter)