private aiLightVector GetmLights() { IntPtr cPtr = AssimpPINVOKE.aiScene_GetmLights(swigCPtr); aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true); return(ret); }
public aiLightVector(aiLightVector other) : this(AssimpPINVOKE.new_aiLightVector__SWIG_1(aiLightVector.getCPtr(other)), true) { if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } }
public aiLightVectorEnumerator(aiLightVector collection) { collectionRef = collection; currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
public void SetRange(int index, aiLightVector values) { AssimpPINVOKE.aiLightVector_SetRange(swigCPtr, index, aiLightVector.getCPtr(values)); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } }
public static aiLightVector Repeat(aiLight value, int count) { IntPtr cPtr = AssimpPINVOKE.aiLightVector_Repeat(aiLight.getCPtr(value), count); aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public aiLightVector GetRange(int index, int count) { IntPtr cPtr = AssimpPINVOKE.aiLightVector_GetRange(swigCPtr, index, count); aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private void SetupLights(aiLightVector lights) { var numLights = lights.Count; if (numLights == 0) { var light = device.Lights[0]; light.Type = LightType.Directional; light.Diffuse = Color.LightGray; light.Direction = new Vector3(-1, -1, 1); light.Enabled = true; } else { // TODO: setup lights } // Enables lighting device.RenderState.Lighting = true; device.RenderState.Ambient = Color.DarkGray; device.RenderState.SpecularEnable = true; }
internal static HandleRef getCPtr(aiLightVector obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }