mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
269 lines
15 KiB
C#
269 lines
15 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/Constraints/Constraint.h#L66">Jolt/Physics/Constraints/Constraint.h:66</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetRTTI")]
|
|
public static partial RTTI ConstraintSettings_GetRTTI(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L66">Jolt/Physics/Constraints/Constraint.h:66</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_CastTo")]
|
|
public static partial void* ConstraintSettings_CastTo(ConstraintSettings self, RTTI rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L72">Jolt/Physics/Constraints/Constraint.h:72</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the contents of the constraint settings in binary form to inStream.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SaveBinaryState")]
|
|
public static partial void ConstraintSettings_SaveBinaryState(ConstraintSettings self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L75">Jolt/Physics/Constraints/Constraint.h:75</see>
|
|
/// <br/>
|
|
/// <c>static ConstraintResult sRestoreFromBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Creates a constraint of the correct type and restores its contents from the binary stream inStream.
|
|
/// </para>
|
|
/// <para>
|
|
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_sRestoreFromBinaryState")]
|
|
public static partial ConstraintSettings ConstraintSettings_sRestoreFromBinaryState(StreamIn stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
|
/// <br/>
|
|
/// <c>bool mEnabled = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetEnabled")]
|
|
public static partial Brutal.Bool8 ConstraintSettings_GetEnabled(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L78">Jolt/Physics/Constraints/Constraint.h:78</see>
|
|
/// <br/>
|
|
/// <c>bool mEnabled = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If this constraint is enabled initially. Use Constraint::SetEnabled to toggle after creation.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetEnabled")]
|
|
public static partial void ConstraintSettings_SetEnabled(ConstraintSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
|
/// <br/>
|
|
/// <c>uint32 mConstraintPriority = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Priority of the constraint when solving. Higher numbers are more likely to be solved correctly.
|
|
/// Note that if you want a deterministic simulation and you cannot guarantee the order in which constraints are added/removed, you can make the priority for all constraints unique to get a deterministic ordering.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetConstraintPriority")]
|
|
public static partial uint ConstraintSettings_GetConstraintPriority(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L82">Jolt/Physics/Constraints/Constraint.h:82</see>
|
|
/// <br/>
|
|
/// <c>uint32 mConstraintPriority = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Priority of the constraint when solving. Higher numbers are more likely to be solved correctly.
|
|
/// Note that if you want a deterministic simulation and you cannot guarantee the order in which constraints are added/removed, you can make the priority for all constraints unique to get a deterministic ordering.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetConstraintPriority")]
|
|
public static partial void ConstraintSettings_SetConstraintPriority(ConstraintSettings self, uint value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
|
/// <br/>
|
|
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Used only when the constraint is active. Override for the number of solver velocity iterations to
|
|
/// run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of iterations to use
|
|
/// is the max of all contacts and constraints in the island.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetNumVelocityStepsOverride")]
|
|
public static partial uint ConstraintSettings_GetNumVelocityStepsOverride(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L85">Jolt/Physics/Constraints/Constraint.h:85</see>
|
|
/// <br/>
|
|
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Used only when the constraint is active. Override for the number of solver velocity iterations to
|
|
/// run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of iterations to use
|
|
/// is the max of all contacts and constraints in the island.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetNumVelocityStepsOverride")]
|
|
public static partial void ConstraintSettings_SetNumVelocityStepsOverride(ConstraintSettings self, uint value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
|
/// <br/>
|
|
/// <c>uint mNumPositionStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Used only when the constraint is active. Override for the number of solver position iterations to
|
|
/// run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of iterations to use
|
|
/// is the max of all contacts and constraints in the island.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetNumPositionStepsOverride")]
|
|
public static partial uint ConstraintSettings_GetNumPositionStepsOverride(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L88">Jolt/Physics/Constraints/Constraint.h:88</see>
|
|
/// <br/>
|
|
/// <c>uint mNumPositionStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Used only when the constraint is active. Override for the number of solver position iterations to
|
|
/// run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of iterations to use
|
|
/// is the max of all contacts and constraints in the island.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetNumPositionStepsOverride")]
|
|
public static partial void ConstraintSettings_SetNumPositionStepsOverride(ConstraintSettings self, uint value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
|
/// <br/>
|
|
/// <c>float mDrawConstraintSize = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Size of constraint when drawing it through the debug renderer
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetDrawConstraintSize")]
|
|
public static partial float ConstraintSettings_GetDrawConstraintSize(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L91">Jolt/Physics/Constraints/Constraint.h:91</see>
|
|
/// <br/>
|
|
/// <c>float mDrawConstraintSize = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Size of constraint when drawing it through the debug renderer
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetDrawConstraintSize")]
|
|
public static partial void ConstraintSettings_SetDrawConstraintSize(ConstraintSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetUserData")]
|
|
public static partial ulong ConstraintSettings_GetUserData(ConstraintSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/Constraint.h#L94">Jolt/Physics/Constraints/Constraint.h:94</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_SetUserData")]
|
|
public static partial void ConstraintSettings_SetUserData(ConstraintSettings self, ulong value);
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_AddRef")]
|
|
public static partial void ConstraintSettings_AddRef(ConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_Release")]
|
|
public static partial void ConstraintSettings_Release(ConstraintSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "ConstraintSettings_GetRefCount")]
|
|
public static partial uint ConstraintSettings_GetRefCount(ConstraintSettings self);
|
|
}
|
|
}
|
|
}
|