Files
Ipseity-Demo/Assets/Wwise/API/Runtime/Generated/Common/AkTriangle.cs
T
2026-03-23 14:28:21 +01:00

86 lines
3.7 KiB
C#

#if !(UNITY_QNX) // Disable under unsupported platforms.
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (https://www.swig.org).
// Version 4.4.0
//
// Do not make changes to this file unless you know what you are doing - modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
/// Triangle for a spatial audio mesh.
public class AkTriangle : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkTriangle(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkTriangle obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkTriangle() {
Dispose(false);
}
public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AkUnitySoundEnginePINVOKE.CSharp_delete_AkTriangle(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// Constructor
public AkTriangle() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkTriangle__SWIG_0(), true) {
}
/// Constructor
public AkTriangle(ushort in_pt0, ushort in_pt1, ushort in_pt2, ushort in_surfaceInfo) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkTriangle__SWIG_1(in_pt0, in_pt1, in_pt2, in_surfaceInfo), true) {
}
/// Index into the vertex table passed into ``AkGeometryParams`` that describes the first vertex of the triangle. Triangles are double-sided, so vertex order in not important.
public ushort point0 { set { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point0_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point0_get(swigCPtr); }
}
/// Index into the vertex table passed into ``AkGeometryParams`` that describes the second vertex of the triangle. Triangles are double-sided, so vertex order in not important.
public ushort point1 { set { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point1_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point1_get(swigCPtr); }
}
/// Index into the vertex table passed into ``AkGeometryParams`` that describes the third vertex of the triangle. Triangles are double-sided, so vertex order in not important.
public ushort point2 { set { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point2_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_point2_get(swigCPtr); }
}
/// Index into the surface table passed into ``AkGeometryParams`` that describes the surface properties of the triangle.
/// If this field is left as ``AK_INVALID_SURFACE``, then a default-constructed ``AkAcousticSurface`` is used.
public ushort surface { set { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_surface_set(swigCPtr, value); } get { return AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_surface_get(swigCPtr); }
}
public void Clear() { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_Clear(swigCPtr); }
public static int GetSizeOf() { return AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_GetSizeOf(); }
public void Clone(AkTriangle other) { AkUnitySoundEnginePINVOKE.CSharp_AkTriangle_Clone(swigCPtr, AkTriangle.getCPtr(other)); }
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.