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

173 lines
4.7 KiB
C#
Raw Normal View History

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* 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 aiLight : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal aiLight(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(aiLight obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~aiLight() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
Assimp_NETPINVOKE.delete_aiLight(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public aiString mName {
set {
Assimp_NETPINVOKE.aiLight_mName_set(swigCPtr, aiString.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mName_get(swigCPtr);
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
return ret;
}
}
public aiLightSourceType mType {
set {
Assimp_NETPINVOKE.aiLight_mType_set(swigCPtr, (int)value);
}
get {
aiLightSourceType ret = (aiLightSourceType)Assimp_NETPINVOKE.aiLight_mType_get(swigCPtr);
return ret;
}
}
public aiVector3D mPosition {
set {
Assimp_NETPINVOKE.aiLight_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mPosition_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public aiVector3D mDirection {
set {
Assimp_NETPINVOKE.aiLight_mDirection_set(swigCPtr, aiVector3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mDirection_get(swigCPtr);
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
return ret;
}
}
public float mAttenuationConstant {
set {
Assimp_NETPINVOKE.aiLight_mAttenuationConstant_set(swigCPtr, value);
}
get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationConstant_get(swigCPtr);
return ret;
}
}
public float mAttenuationLinear {
set {
Assimp_NETPINVOKE.aiLight_mAttenuationLinear_set(swigCPtr, value);
}
get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationLinear_get(swigCPtr);
return ret;
}
}
public float mAttenuationQuadratic {
set {
Assimp_NETPINVOKE.aiLight_mAttenuationQuadratic_set(swigCPtr, value);
}
get {
float ret = Assimp_NETPINVOKE.aiLight_mAttenuationQuadratic_get(swigCPtr);
return ret;
}
}
public aiColor3D mColorDiffuse {
set {
Assimp_NETPINVOKE.aiLight_mColorDiffuse_set(swigCPtr, aiColor3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorDiffuse_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret;
}
}
public aiColor3D mColorSpecular {
set {
Assimp_NETPINVOKE.aiLight_mColorSpecular_set(swigCPtr, aiColor3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorSpecular_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret;
}
}
public aiColor3D mColorAmbient {
set {
Assimp_NETPINVOKE.aiLight_mColorAmbient_set(swigCPtr, aiColor3D.getCPtr(value));
}
get {
IntPtr cPtr = Assimp_NETPINVOKE.aiLight_mColorAmbient_get(swigCPtr);
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
return ret;
}
}
public float mAngleInnerCone {
set {
Assimp_NETPINVOKE.aiLight_mAngleInnerCone_set(swigCPtr, value);
}
get {
float ret = Assimp_NETPINVOKE.aiLight_mAngleInnerCone_get(swigCPtr);
return ret;
}
}
public float mAngleOuterCone {
set {
Assimp_NETPINVOKE.aiLight_mAngleOuterCone_set(swigCPtr, value);
}
get {
float ret = Assimp_NETPINVOKE.aiLight_mAngleOuterCone_get(swigCPtr);
return ret;
}
}
public aiLight() : this(Assimp_NETPINVOKE.new_aiLight(), true) {
}
}