//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
///
///
/// Convex shapes don't have sub shapes
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:46
///
/// virtual uint GetSubShapeIDBitsRecursive() const override
///
///
///
///
/// See Shape::GetSubShapeIDBitsRecursive
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetSubShapeIDBitsRecursive")]
public static partial uint ConvexShape_GetSubShapeIDBitsRecursive(ConvexShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:49
///
/// virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override
///
///
///
///
/// See Shape::GetMaterial
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetMaterial")]
public static partial PhysicsMaterial ConvexShape_GetMaterial(ConvexShape self, uint subShapeID);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:59
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetTrianglesStart")]
public static partial void ConvexShape_GetTrianglesStart(ConvexShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:65
///
/// virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override
///
///
///
///
/// See Shape::GetSubmergedVolume
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetSubmergedVolume")]
public static partial void ConvexShape_GetSubmergedVolume(ConvexShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:105
///
/// void SetMaterial(const PhysicsMaterial *inMaterial)
///
///
///
///
/// Material of the shape
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_SetMaterial")]
public static partial void ConvexShape_SetMaterial(ConvexShape self, PhysicsMaterial material);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:106
///
/// const PhysicsMaterial * GetMaterial() const
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetMaterial_2")]
public static partial PhysicsMaterial ConvexShape_GetMaterial_2(ConvexShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:109
///
/// void SetDensity(float inDensity)
///
///
///
///
/// Set density of the shape (kg / m^3)
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_SetDensity")]
public static partial void ConvexShape_SetDensity(ConvexShape self, float density);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:112
///
/// float GetDensity() const
///
///
///
///
/// Get density of the shape (kg / m^3)
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetDensity")]
public static partial float ConvexShape_GetDensity(ConvexShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:116
///
/// virtual void DrawGetSupportFunction(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inDrawSupportDirection) const override
///
///
///
///
/// See Shape::DrawGetSupportFunction
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_DrawGetSupportFunction")]
public static partial void ConvexShape_DrawGetSupportFunction(ConvexShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 drawSupportDirection);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:119
///
/// virtual void DrawGetSupportingFace(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::DrawGetSupportingFace
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_DrawGetSupportingFace")]
public static partial void ConvexShape_DrawGetSupportingFace(ConvexShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:123
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_SaveBinaryState")]
public static partial void ConvexShape_SaveBinaryState(ConvexShape self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexShape.h:128
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
[LibraryImport("jolt", EntryPoint = "ConvexShape_sRegister")]
public static partial void ConvexShape_sRegister();
[LibraryImport("jolt", EntryPoint = "ConvexShape_AddRef")]
public static partial void ConvexShape_AddRef(ConvexShape self);
[LibraryImport("jolt", EntryPoint = "ConvexShape_Release")]
public static partial void ConvexShape_Release(ConvexShape self);
[LibraryImport("jolt", EntryPoint = "ConvexShape_GetRefCount")]
public static partial uint ConvexShape_GetRefCount(ConvexShape self);
[LibraryImport("jolt", EntryPoint = "ConvexShape_AsShape")]
public static partial Shape ConvexShape_AsShape(ConvexShape self);
}
}
}