Prechádzať zdrojové kódy

Remove ShapeSettings/ConvexShapeSettings now that shape settings are specialized

Lucien Greathouse 1 rok pred
rodič
commit
759d880907
2 zmenil súbory, kde vykonal 0 pridanie a 39 odobranie
  1. 0 18
      JoltC/Functions.h
  2. 0 21
      JoltC/JoltC.cpp

+ 0 - 18
JoltC/Functions.h

@@ -287,24 +287,6 @@ JPC_API uint32_t JPC_Shape_GetRefCount(JPC_Shape* self);
 JPC_API void JPC_Shape_AddRef(JPC_Shape* self);
 JPC_API void JPC_Shape_Release(JPC_Shape* self);
 
-////////////////////////////////////////////////////////////////////////////////
-// ShapeSettings -> RefTarget
-
-typedef struct JPC_ShapeSettings JPC_ShapeSettings;
-
-JPC_API bool JPC_ShapeSettings_Create(
-	const JPC_ShapeSettings* self,
-	JPC_Shape** outShape,
-	JPC_String** outError);
-
-////////////////////////////////////////////////////////////////////////////////
-// ConvexShapeSettings
-
-typedef struct JPC_ConvexShapeSettings JPC_ConvexShapeSettings;
-
-JPC_API float JPC_ConvexShapeSettings_GetDensity(JPC_ConvexShapeSettings* self);
-JPC_API void JPC_ConvexShapeSettings_SetDensity(JPC_ConvexShapeSettings* self, float inDensity);
-
 ////////////////////////////////////////////////////////////////////////////////
 // TriangleShapeSettings
 

+ 0 - 21
JoltC/JoltC.cpp

@@ -85,8 +85,6 @@ DESTRUCTOR(JPC_TempAllocatorImpl)
 OPAQUE_WRAPPER(JPC_JobSystemThreadPool, JPH::JobSystemThreadPool)
 DESTRUCTOR(JPC_JobSystemThreadPool)
 
-OPAQUE_WRAPPER(JPC_ConvexShapeSettings, JPH::ConvexShapeSettings)
-OPAQUE_WRAPPER(JPC_ShapeSettings, JPH::ShapeSettings)
 OPAQUE_WRAPPER(JPC_Shape, JPH::Shape)
 OPAQUE_WRAPPER(JPC_Body, JPH::Body)
 
@@ -385,25 +383,6 @@ static bool HandleShapeResult(JPH::ShapeSettings::ShapeResult res, JPC_Shape** o
 	}
 }
 
-JPC_API bool JPC_ShapeSettings_Create(
-	const JPC_ShapeSettings* self,
-	JPC_Shape** outShape,
-	JPC_String** outError)
-{
-	return HandleShapeResult(to_jph(self)->Create(), outShape, outError);
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// ConvexShapeSettings
-
-JPC_API float JPC_ConvexShapeSettings_GetDensity(JPC_ConvexShapeSettings* self) {
-	return to_jph(self)->mDensity;
-}
-
-JPC_API void JPC_ConvexShapeSettings_SetDensity(JPC_ConvexShapeSettings* self, float inDensity) {
-	to_jph(self)->SetDensity(inDensity);
-}
-
 ////////////////////////////////////////////////////////////////////////////////
 // TriangleShapeSettings