mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
389 lines
21 KiB
C#
389 lines
21 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L39">Jolt/Physics/Collision/Shape/HeightFieldShape.h:39</see>
|
|
/// <br/>
|
|
/// <c>class HeightFieldShapeSettings final : public ShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Class that constructs a HeightFieldShape
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct HeightFieldShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L45">Jolt/Physics/Collision/Shape/HeightFieldShape.h:45</see>
|
|
/// <br/>
|
|
/// <c>HeightFieldShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// </remarks>
|
|
public static HeightFieldShapeSettings Create() => Jolt.PInvoke.HeightFieldShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L41">Jolt/Physics/Collision/Shape/HeightFieldShape.h:41</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public RTTI GetRTTI() => Jolt.PInvoke.HeightFieldShapeSettings_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L41">Jolt/Physics/Collision/Shape/HeightFieldShape.h:41</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.HeightFieldShapeSettings_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L56">Jolt/Physics/Collision/Shape/HeightFieldShape.h:56</see>
|
|
/// <br/>
|
|
/// <c>virtual ShapeResult Create() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: ShapeSettings
|
|
/// </para>
|
|
/// <para>
|
|
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
|
|
/// </para>
|
|
/// </remarks>
|
|
public Shape CreateShape()
|
|
{
|
|
var _handle = Jolt.PInvoke.HeightFieldShapeSettings_CreateShape(this);
|
|
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
|
return _handle;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L62">Jolt/Physics/Collision/Shape/HeightFieldShape.h:62</see>
|
|
/// <br/>
|
|
/// <c>void DetermineMinAndMaxSample(float &outMinValue, float &outMaxValue, float &outQuantizationScale) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Determine the minimal and maximal value of mHeightSamples (will ignore cNoCollisionValue)
|
|
/// @param outMinValue The minimal value of mHeightSamples or FLT_MAX if no samples have collision
|
|
/// @param outMaxValue The maximal value of mHeightSamples or -FLT_MAX if no samples have collision
|
|
/// @param outQuantizationScale (value - outMinValue) * outQuantizationScale quantizes a height sample to 16 bits
|
|
/// </code>
|
|
/// </remarks>
|
|
public void DetermineMinAndMaxSample(out float minValue, out float maxValue, out float quantizationScale) => Jolt.PInvoke.HeightFieldShapeSettings_DetermineMinAndMaxSample(this, out minValue, out maxValue, out quantizationScale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L67">Jolt/Physics/Collision/Shape/HeightFieldShape.h:67</see>
|
|
/// <br/>
|
|
/// <c>uint32 CalculateBitsPerSampleForError(float inMaxError) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Given mBlockSize, mSampleCount and mHeightSamples, calculate the amount of bits needed to stay below absolute error inMaxError
|
|
/// @param inMaxError Maximum allowed error in mHeightSamples after compression (note that this does not take mScale.Y into account)
|
|
/// @return Needed bits per sample in the range [1, 8].
|
|
/// </code>
|
|
/// </remarks>
|
|
public uint CalculateBitsPerSampleForError(float maxError) => Jolt.PInvoke.HeightFieldShapeSettings_CalculateBitsPerSampleForError(this, maxError);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L71">Jolt/Physics/Collision/Shape/HeightFieldShape.h:71</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mOffset = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// The height field is a surface defined by: mOffset + mScale * (x, mHeightSamples[y * mSampleCount + x], y).
|
|
/// where x and y are integers in the range x and y e [0, mSampleCount - 1].
|
|
/// </code>
|
|
/// </remarks>
|
|
public float3 GetOffset() => Jolt.PInvoke.HeightFieldShapeSettings_GetOffset(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L71">Jolt/Physics/Collision/Shape/HeightFieldShape.h:71</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mOffset = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// The height field is a surface defined by: mOffset + mScale * (x, mHeightSamples[y * mSampleCount + x], y).
|
|
/// where x and y are integers in the range x and y e [0, mSampleCount - 1].
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetOffset(float3 value) => Jolt.PInvoke.HeightFieldShapeSettings_SetOffset(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L72">Jolt/Physics/Collision/Shape/HeightFieldShape.h:72</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mScale = Vec3::sOne()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetScale() => Jolt.PInvoke.HeightFieldShapeSettings_GetScale(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L72">Jolt/Physics/Collision/Shape/HeightFieldShape.h:72</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mScale = Vec3::sOne()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetScale(float3 value) => Jolt.PInvoke.HeightFieldShapeSettings_SetScale(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L73">Jolt/Physics/Collision/Shape/HeightFieldShape.h:73</see>
|
|
/// <br/>
|
|
/// <c>uint32 mSampleCount = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetSampleCount() => Jolt.PInvoke.HeightFieldShapeSettings_GetSampleCount(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L73">Jolt/Physics/Collision/Shape/HeightFieldShape.h:73</see>
|
|
/// <br/>
|
|
/// <c>uint32 mSampleCount = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSampleCount(uint value) => Jolt.PInvoke.HeightFieldShapeSettings_SetSampleCount(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L76">Jolt/Physics/Collision/Shape/HeightFieldShape.h:76</see>
|
|
/// <br/>
|
|
/// <c>float mMinHeightValue = cLargeFloat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Artificial minimal value of mHeightSamples, used for compression and can be used to update the terrain
|
|
/// after creating with lower height values. If there are any lower values in mHeightSamples, this value
|
|
/// will be ignored.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetMinHeightValue() => Jolt.PInvoke.HeightFieldShapeSettings_GetMinHeightValue(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L76">Jolt/Physics/Collision/Shape/HeightFieldShape.h:76</see>
|
|
/// <br/>
|
|
/// <c>float mMinHeightValue = cLargeFloat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Artificial minimal value of mHeightSamples, used for compression and can be used to update the terrain
|
|
/// after creating with lower height values. If there are any lower values in mHeightSamples, this value
|
|
/// will be ignored.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetMinHeightValue(float value) => Jolt.PInvoke.HeightFieldShapeSettings_SetMinHeightValue(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L79">Jolt/Physics/Collision/Shape/HeightFieldShape.h:79</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHeightValue = -cLargeFloat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Artificial maximum value of mHeightSamples, used for compression and can be used to update the terrain
|
|
/// after creating with higher height values. If there are any higher values in mHeightSamples, this value
|
|
/// will be ignored.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetMaxHeightValue() => Jolt.PInvoke.HeightFieldShapeSettings_GetMaxHeightValue(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L79">Jolt/Physics/Collision/Shape/HeightFieldShape.h:79</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHeightValue = -cLargeFloat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Artificial maximum value of mHeightSamples, used for compression and can be used to update the terrain
|
|
/// after creating with higher height values. If there are any higher values in mHeightSamples, this value
|
|
/// will be ignored.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetMaxHeightValue(float value) => Jolt.PInvoke.HeightFieldShapeSettings_SetMaxHeightValue(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L83">Jolt/Physics/Collision/Shape/HeightFieldShape.h:83</see>
|
|
/// <br/>
|
|
/// <c>uint32 mMaterialsCapacity = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// When bigger than mMaterials.size() the internal material list will be preallocated to support this number of materials.
|
|
/// This avoids reallocations when calling HeightFieldShape::SetMaterials with new materials later.
|
|
/// </code>
|
|
/// </remarks>
|
|
public uint GetMaterialsCapacity() => Jolt.PInvoke.HeightFieldShapeSettings_GetMaterialsCapacity(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L83">Jolt/Physics/Collision/Shape/HeightFieldShape.h:83</see>
|
|
/// <br/>
|
|
/// <c>uint32 mMaterialsCapacity = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// When bigger than mMaterials.size() the internal material list will be preallocated to support this number of materials.
|
|
/// This avoids reallocations when calling HeightFieldShape::SetMaterials with new materials later.
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetMaterialsCapacity(uint value) => Jolt.PInvoke.HeightFieldShapeSettings_SetMaterialsCapacity(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L88">Jolt/Physics/Collision/Shape/HeightFieldShape.h:88</see>
|
|
/// <br/>
|
|
/// <c>uint32 mBlockSize = 2</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// The heightfield is divided in blocks of mBlockSize * mBlockSize * 2 triangles and the acceleration structure culls blocks only,
|
|
/// bigger block sizes reduce memory consumption but also reduce query performance. Sensible values are [2, 8], does not need to be
|
|
/// a power of 2. Note that at run-time we'll perform one more grid subdivision, so the effective block size is half of what is provided here.
|
|
/// </code>
|
|
/// </remarks>
|
|
public uint GetBlockSize() => Jolt.PInvoke.HeightFieldShapeSettings_GetBlockSize(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L88">Jolt/Physics/Collision/Shape/HeightFieldShape.h:88</see>
|
|
/// <br/>
|
|
/// <c>uint32 mBlockSize = 2</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// The heightfield is divided in blocks of mBlockSize * mBlockSize * 2 triangles and the acceleration structure culls blocks only,
|
|
/// bigger block sizes reduce memory consumption but also reduce query performance. Sensible values are [2, 8], does not need to be
|
|
/// a power of 2. Note that at run-time we'll perform one more grid subdivision, so the effective block size is half of what is provided here.
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetBlockSize(uint value) => Jolt.PInvoke.HeightFieldShapeSettings_SetBlockSize(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L93">Jolt/Physics/Collision/Shape/HeightFieldShape.h:93</see>
|
|
/// <br/>
|
|
/// <c>uint32 mBitsPerSample = 8</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// How many bits per sample to use to compress the height field. Can be in the range [1, 8].
|
|
/// Note that each sample is compressed relative to the min/max value of its block of mBlockSize * mBlockSize pixels so the effective precision is higher.
|
|
/// Also note that increasing mBlockSize saves more memory than reducing the amount of bits per sample.
|
|
/// </code>
|
|
/// </remarks>
|
|
public uint GetBitsPerSample() => Jolt.PInvoke.HeightFieldShapeSettings_GetBitsPerSample(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L93">Jolt/Physics/Collision/Shape/HeightFieldShape.h:93</see>
|
|
/// <br/>
|
|
/// <c>uint32 mBitsPerSample = 8</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// How many bits per sample to use to compress the height field. Can be in the range [1, 8].
|
|
/// Note that each sample is compressed relative to the min/max value of its block of mBlockSize * mBlockSize pixels so the effective precision is higher.
|
|
/// Also note that increasing mBlockSize saves more memory than reducing the amount of bits per sample.
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetBitsPerSample(uint value) => Jolt.PInvoke.HeightFieldShapeSettings_SetBitsPerSample(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// cos(5 degrees)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L107">Jolt/Physics/Collision/Shape/HeightFieldShape.h:107</see>
|
|
/// <br/>
|
|
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
|
|
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
|
|
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
|
|
/// </code>
|
|
/// </remarks>
|
|
public float GetActiveEdgeCosThresholdAngle() => Jolt.PInvoke.HeightFieldShapeSettings_GetActiveEdgeCosThresholdAngle(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// cos(5 degrees)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L107">Jolt/Physics/Collision/Shape/HeightFieldShape.h:107</see>
|
|
/// <br/>
|
|
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
|
|
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
|
|
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetActiveEdgeCosThresholdAngle(float value) => Jolt.PInvoke.HeightFieldShapeSettings_SetActiveEdgeCosThresholdAngle(this, value);
|
|
public void AddRef() => Jolt.PInvoke.HeightFieldShapeSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.HeightFieldShapeSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.HeightFieldShapeSettings_GetRefCount(this);
|
|
public static implicit operator ShapeSettings(HeightFieldShapeSettings value) => Jolt.PInvoke.HeightFieldShapeSettings_AsShapeSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|