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

75 lines
2.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.
//------------------------------------------------------------------------------
/// Settings for individual image sources.
public class AkImageSourceSettings : global::System.IDisposable {
private global::System.IntPtr swigCPtr;
protected bool swigCMemOwn;
internal AkImageSourceSettings(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
internal static global::System.IntPtr getCPtr(AkImageSourceSettings obj) {
return (obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr;
}
internal virtual void setCPtr(global::System.IntPtr cPtr) {
Dispose();
swigCPtr = cPtr;
}
~AkImageSourceSettings() {
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_AkImageSourceSettings(swigCPtr);
}
swigCPtr = global::System.IntPtr.Zero;
}
global::System.GC.SuppressFinalize(this);
}
}
/// Constructor
public AkImageSourceSettings() : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkImageSourceSettings__SWIG_0(), true) {
}
/// Constructor with parameters
public AkImageSourceSettings(AkVector64 in_sourcePosition, float in_fDistanceScalingFactor, float in_fLevel) : this(AkUnitySoundEnginePINVOKE.CSharp_new_AkImageSourceSettings__SWIG_1(in_sourcePosition, in_fDistanceScalingFactor, in_fLevel), true) {
}
/// Helper function to set a single acoustic texture.
public void SetOneTexture(uint in_texture) { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceSettings_SetOneTexture(swigCPtr, in_texture); }
/// Image source parameters.
public AkImageSourceParams params_ { set { AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceSettings_params__set(swigCPtr, AkImageSourceParams.getCPtr(value)); }
get {
global::System.IntPtr cPtr = AkUnitySoundEnginePINVOKE.CSharp_AkImageSourceSettings_params__get(swigCPtr);
AkImageSourceParams ret = (cPtr == global::System.IntPtr.Zero) ? null : new AkImageSourceParams(cPtr, false);
return ret;
}
}
}
#endif // #if !(UNITY_QNX) // Disable under unsupported platforms.