assimp/port/Assimp.NET/Assimp.NET_CS/aiTexture.cs

93 lines
2.3 KiB
C#

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class aiTexture : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiTexture(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiTexture obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiTexture() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
AssimpPINVOKE.delete_aiTexture(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public uint mWidth {
set {
AssimpPINVOKE.aiTexture_mWidth_set(swigCPtr, value);
}
get {
uint ret = AssimpPINVOKE.aiTexture_mWidth_get(swigCPtr);
return ret;
}
}
public uint mHeight {
set {
AssimpPINVOKE.aiTexture_mHeight_set(swigCPtr, value);
}
get {
uint ret = AssimpPINVOKE.aiTexture_mHeight_get(swigCPtr);
return ret;
}
}
public string achFormatHint {
set {
AssimpPINVOKE.aiTexture_achFormatHint_set(swigCPtr, value);
}
get {
string ret = AssimpPINVOKE.aiTexture_achFormatHint_get(swigCPtr);
return ret;
}
}
public aiTexel pcData {
set {
AssimpPINVOKE.aiTexture_pcData_set(swigCPtr, aiTexel.getCPtr(value));
}
get {
IntPtr cPtr = AssimpPINVOKE.aiTexture_pcData_get(swigCPtr);
aiTexel ret = (cPtr == IntPtr.Zero) ? null : new aiTexel(cPtr, false);
return ret;
}
}
public bool CheckFormat(string s) {
bool ret = AssimpPINVOKE.aiTexture_CheckFormat(swigCPtr, s);
return ret;
}
public aiTexture() : this(AssimpPINVOKE.new_aiTexture(), true) {
}
}