Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 5
0
 public static extern IntPtr BindAttachmentToLight(IntPtr attachmentPtr, ref LightParams lightParams);
Exemplo n.º 6
0
 public static extern int LoadLight(IntPtr entPtr, int slot, LightParams lightParams);