Rasagar/Library/PackageCache/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs
2024-08-30 17:33:54 +03:00

462 lines
16 KiB
C#

#if UNITY_EDITOR || FBXSDK_RUNTIME
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
namespace Autodesk.Fbx {
public class FbxTexture : FbxObject {
internal FbxTexture(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { }
// override void Dispose() {base.Dispose();}
public new static FbxTexture Create(FbxManager pManager, string pName) {
global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_0(FbxManager.getCPtr(pManager), pName);
FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public new static FbxTexture Create(FbxObject pContainer, string pName) {
global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName);
FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxPropertyDouble Alpha {
get {
FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxTexture_Alpha_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyEWrapMode WrapModeU {
get {
FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeU_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyEWrapMode WrapModeV {
get {
FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeV_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyBool UVSwap {
get {
FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_UVSwap_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyBool PremultiplyAlpha {
get {
FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_PremultiplyAlpha_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyDouble3 Translation {
get {
FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Translation_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyDouble3 Rotation {
get {
FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Rotation_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyDouble3 Scaling {
get {
FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Scaling_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyDouble3 RotationPivot {
get {
FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_RotationPivot_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyDouble3 ScalingPivot {
get {
FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_ScalingPivot_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyEBlendMode CurrentTextureBlendMode {
get {
FbxPropertyEBlendMode ret = new FbxPropertyEBlendMode(NativeMethods.FbxTexture_CurrentTextureBlendMode_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public FbxPropertyString UVSet {
get {
FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxTexture_UVSet_get(swigCPtr), false);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
}
public static string sVectorSpace {
get {
string ret = NativeMethods.FbxTexture_sVectorSpace_get();
return ret;
}
}
public static string sVectorSpaceWorld {
get {
string ret = NativeMethods.FbxTexture_sVectorSpaceWorld_get();
return ret;
}
}
public static string sVectorSpaceObject {
get {
string ret = NativeMethods.FbxTexture_sVectorSpaceObject_get();
return ret;
}
}
public static string sVectorSpaceTangent {
get {
string ret = NativeMethods.FbxTexture_sVectorSpaceTangent_get();
return ret;
}
}
public static string sVectorEncoding {
get {
string ret = NativeMethods.FbxTexture_sVectorEncoding_get();
return ret;
}
}
public static string sVectorEncodingFP {
get {
string ret = NativeMethods.FbxTexture_sVectorEncodingFP_get();
return ret;
}
}
public static string sVectorEncodingSE {
get {
string ret = NativeMethods.FbxTexture_sVectorEncodingSE_get();
return ret;
}
}
public virtual void Reset() {
NativeMethods.FbxTexture_Reset(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetSwapUV(bool pSwapUV) {
NativeMethods.FbxTexture_SetSwapUV(swigCPtr, pSwapUV);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public bool GetSwapUV() {
bool ret = NativeMethods.FbxTexture_GetSwapUV(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetPremultiplyAlpha(bool pPremultiplyAlpha) {
NativeMethods.FbxTexture_SetPremultiplyAlpha(swigCPtr, pPremultiplyAlpha);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public bool GetPremultiplyAlpha() {
bool ret = NativeMethods.FbxTexture_GetPremultiplyAlpha(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetAlphaSource(FbxTexture.EAlphaSource pAlphaSource) {
NativeMethods.FbxTexture_SetAlphaSource(swigCPtr, (int)pAlphaSource);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.EAlphaSource GetAlphaSource() {
FbxTexture.EAlphaSource ret = (FbxTexture.EAlphaSource)NativeMethods.FbxTexture_GetAlphaSource(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetCropping(int pLeft, int pTop, int pRight, int pBottom) {
NativeMethods.FbxTexture_SetCropping(swigCPtr, pLeft, pTop, pRight, pBottom);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public int GetCroppingLeft() {
int ret = NativeMethods.FbxTexture_GetCroppingLeft(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int GetCroppingTop() {
int ret = NativeMethods.FbxTexture_GetCroppingTop(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int GetCroppingRight() {
int ret = NativeMethods.FbxTexture_GetCroppingRight(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public int GetCroppingBottom() {
int ret = NativeMethods.FbxTexture_GetCroppingBottom(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetMappingType(FbxTexture.EMappingType pMappingType) {
NativeMethods.FbxTexture_SetMappingType(swigCPtr, (int)pMappingType);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.EMappingType GetMappingType() {
FbxTexture.EMappingType ret = (FbxTexture.EMappingType)NativeMethods.FbxTexture_GetMappingType(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetPlanarMappingNormal(FbxTexture.EPlanarMappingNormal pPlanarMappingNormal) {
NativeMethods.FbxTexture_SetPlanarMappingNormal(swigCPtr, (int)pPlanarMappingNormal);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.EPlanarMappingNormal GetPlanarMappingNormal() {
FbxTexture.EPlanarMappingNormal ret = (FbxTexture.EPlanarMappingNormal)NativeMethods.FbxTexture_GetPlanarMappingNormal(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetTextureUse(FbxTexture.ETextureUse pTextureUse) {
NativeMethods.FbxTexture_SetTextureUse(swigCPtr, (int)pTextureUse);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.ETextureUse GetTextureUse() {
FbxTexture.ETextureUse ret = (FbxTexture.ETextureUse)NativeMethods.FbxTexture_GetTextureUse(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetWrapMode(FbxTexture.EWrapMode pWrapU, FbxTexture.EWrapMode pWrapV) {
NativeMethods.FbxTexture_SetWrapMode(swigCPtr, (int)pWrapU, (int)pWrapV);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.EWrapMode GetWrapModeU() {
FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeU(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public FbxTexture.EWrapMode GetWrapModeV() {
FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeV(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetBlendMode(FbxTexture.EBlendMode pBlendMode) {
NativeMethods.FbxTexture_SetBlendMode(swigCPtr, (int)pBlendMode);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public FbxTexture.EBlendMode GetBlendMode() {
FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxTexture_GetBlendMode(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetDefaultAlpha(double pAlpha) {
NativeMethods.FbxTexture_SetDefaultAlpha(swigCPtr, pAlpha);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public double GetDefaultAlpha() {
double ret = NativeMethods.FbxTexture_GetDefaultAlpha(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetTranslation(double pU, double pV) {
NativeMethods.FbxTexture_SetTranslation(swigCPtr, pU, pV);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public double GetTranslationU() {
double ret = NativeMethods.FbxTexture_GetTranslationU(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public double GetTranslationV() {
double ret = NativeMethods.FbxTexture_GetTranslationV(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetRotation(double pU, double pV, double pW) {
NativeMethods.FbxTexture_SetRotation__SWIG_0(swigCPtr, pU, pV, pW);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public void SetRotation(double pU, double pV) {
NativeMethods.FbxTexture_SetRotation__SWIG_1(swigCPtr, pU, pV);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public double GetRotationU() {
double ret = NativeMethods.FbxTexture_GetRotationU(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public double GetRotationV() {
double ret = NativeMethods.FbxTexture_GetRotationV(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public double GetRotationW() {
double ret = NativeMethods.FbxTexture_GetRotationW(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public void SetScale(double pU, double pV) {
NativeMethods.FbxTexture_SetScale(swigCPtr, pU, pV);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
}
public double GetScaleU() {
double ret = NativeMethods.FbxTexture_GetScaleU(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public double GetScaleV() {
double ret = NativeMethods.FbxTexture_GetScaleV(swigCPtr);
if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();
return ret;
}
public override int GetHashCode(){
return swigCPtr.Handle.GetHashCode();
}
public bool Equals(FbxTexture other) {
if (object.ReferenceEquals(other, null)) { return false; }
return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle);
}
public override bool Equals(object obj){
if (object.ReferenceEquals(obj, null)) { return false; }
/* is obj a subclass of this type; if so use our Equals */
var typed = obj as FbxTexture;
if (!object.ReferenceEquals(typed, null)) {
return this.Equals(typed);
}
/* are we a subclass of the other type; if so use their Equals */
if (typeof(FbxTexture).IsSubclassOf(obj.GetType())) {
return obj.Equals(this);
}
/* types are unrelated; can't be a match */
return false;
}
public static bool operator == (FbxTexture a, FbxTexture b) {
if (object.ReferenceEquals(a, b)) { return true; }
if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; }
return a.Equals(b);
}
public static bool operator != (FbxTexture a, FbxTexture b) {
return !(a == b);
}
public enum EWrapMode {
eRepeat,
eClamp
}
public enum EBlendMode {
eTranslucent,
eAdditive,
eModulate,
eModulate2,
eOver
}
public enum EAlphaSource {
eNone,
eRGBIntensity,
eBlack
}
public enum EMappingType {
eNull,
ePlanar,
eSpherical,
eCylindrical,
eBox,
eFace,
eUV,
eEnvironment
}
public enum EPlanarMappingNormal {
ePlanarNormalX,
ePlanarNormalY,
ePlanarNormalZ
}
public enum ETextureUse {
eStandard,
eShadowMap,
eLightMap,
eSphericalReflectionMap,
eSphereReflectionMap,
eBumpNormalMap
}
}
}
#endif // UNITY_EDITOR || FBXSDK_RUNTIME