/// <summary> /// Loads a light source to the specified slot, or to the next available slot. /// </summary> /// <param name="parameters"> /// New params of the light source we wish to load /// </param> /// <param name="slot"> /// Slot we want to load the light into, if -1 chooses the next available slot. /// </param> /// <returns> /// The slot where the light source was loaded, or -1 if loading failed. /// </returns> public int LoadLight(LightParams parameters, int slot = 1) { return(EntityInterop.LoadLight(this.EntityHandle, slot, parameters)); }
/// <summary> /// Binds a light source to this attachment. /// </summary> /// <param name="lightParams">A set of parameters that describe a light source.</param> public void SwitchToLightObject(ref LightParams lightParams) { EntityInterop.BindAttachmentToLight(this.Handle, ref lightParams); }
/// <summary> /// Loads a light source to the specified slot, or to the next available slot. /// </summary> /// <param name="parameters"> /// New params of the light source we wish to load /// </param> /// <param name="slot"> /// Slot we want to load the light into, if -1 chooses the next available slot. /// </param> /// <returns> /// The slot where the light source was loaded, or -1 if loading failed. /// </returns> public int LoadLight(LightParams parameters, int slot = 1) { return EntityInterop.LoadLight(this.EntityHandle, slot, parameters); }
public static extern IntPtr BindAttachmentToLight(IntPtr attachmentPtr, ref LightParams lightParams);
public static extern int LoadLight(IntPtr entPtr, int slot, LightParams lightParams);