brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/MeshShape.gen.cs
2026-10-15 14:12:02 +13:00

250 lines
14 KiB
C#

// <auto-generated/>
// 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L90">Jolt/Physics/Collision/Shape/MeshShape.h:90</see>
/// <br/>
/// <c>MeshShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_Create")]
public static partial MeshShape MeshShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L94">Jolt/Physics/Collision/Shape/MeshShape.h:94</see>
/// <br/>
/// <c>virtual bool MustBeStatic() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MustBeStatic
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_MustBeStatic")]
public static partial Brutal.Bool8 MeshShape_MustBeStatic(MeshShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L100">Jolt/Physics/Collision/Shape/MeshShape.h:100</see>
/// <br/>
/// <c>virtual uint GetSubShapeIDBitsRecursive() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubShapeIDBitsRecursive
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetSubShapeIDBitsRecursive")]
public static partial uint MeshShape_GetSubShapeIDBitsRecursive(MeshShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L103">Jolt/Physics/Collision/Shape/MeshShape.h:103</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetInnerRadius")]
public static partial float MeshShape_GetInnerRadius(MeshShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L109">Jolt/Physics/Collision/Shape/MeshShape.h:109</see>
/// <br/>
/// <c>virtual const PhysicsMaterial * GetMaterial(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetMaterial
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetMaterial")]
public static partial PhysicsMaterial MeshShape_GetMaterial(MeshShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L116">Jolt/Physics/Collision/Shape/MeshShape.h:116</see>
/// <br/>
/// <c>uint GetMaterialIndex(const SubShapeID &amp;inSubShapeID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Determine which material index a particular sub shape uses (note that if there are no materials this function will return 0 so check the array size)
/// Note: This could for example be used to create a decorator shape around a mesh shape that overrides the GetMaterial call to replace a material with another material.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetMaterialIndex")]
public static partial uint MeshShape_GetMaterialIndex(MeshShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L119">Jolt/Physics/Collision/Shape/MeshShape.h:119</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetSurfaceNormal")]
public static partial float3 MeshShape_GetSurfaceNormal(MeshShape self, uint subShapeID, float3 localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L126">Jolt/Physics/Collision/Shape/MeshShape.h:126</see>
/// <br/>
/// <c>virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::Draw
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_Draw")]
public static partial void MeshShape_Draw(MeshShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L139">Jolt/Physics/Collision/Shape/MeshShape.h:139</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape::CollideSoftBodyVertices
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_CollideSoftBodyVertices")]
public static partial void MeshShape_CollideSoftBodyVertices(MeshShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L142">Jolt/Physics/Collision/Shape/MeshShape.h:142</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetTrianglesStart
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetTrianglesStart")]
public static partial void MeshShape_GetTrianglesStart(MeshShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L148">Jolt/Physics/Collision/Shape/MeshShape.h:148</see>
/// <br/>
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &amp;inSurface, float &amp;outTotalVolume, float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubmergedVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetSubmergedVolume")]
public static partial void MeshShape_GetSubmergedVolume(MeshShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L151">Jolt/Physics/Collision/Shape/MeshShape.h:151</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_SaveBinaryState")]
public static partial void MeshShape_SaveBinaryState(MeshShape self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L159">Jolt/Physics/Collision/Shape/MeshShape.h:159</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetVolume")]
public static partial float MeshShape_GetVolume(MeshShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L162">Jolt/Physics/Collision/Shape/MeshShape.h:162</see>
/// <br/>
/// <c>uint32 GetTriangleUserData(const SubShapeID &amp;inSubShapeID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// When MeshShape::mPerTriangleUserData is true, this function can be used to retrieve the user data
/// that was stored in the mesh shape.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_GetTriangleUserData")]
public static partial uint MeshShape_GetTriangleUserData(MeshShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L171">Jolt/Physics/Collision/Shape/MeshShape.h:171</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShape_sRegister")]
public static partial void MeshShape_sRegister();
[LibraryImport("jolt", EntryPoint = "MeshShape_AddRef")]
public static partial void MeshShape_AddRef(MeshShape self);
[LibraryImport("jolt", EntryPoint = "MeshShape_Release")]
public static partial void MeshShape_Release(MeshShape self);
[LibraryImport("jolt", EntryPoint = "MeshShape_GetRefCount")]
public static partial uint MeshShape_GetRefCount(MeshShape self);
[LibraryImport("jolt", EntryPoint = "MeshShape_AsShape")]
public static partial Shape MeshShape_AsShape(MeshShape self);
}
}
}