/// <summary> /// Initializes a new instance of the <see cref="ImageBillboard"/> class. /// </summary> /// <param name="texture">The texture.</param> public ImageBillboard(PackedTexture texture) { Texture = texture; Size = new Vector2F(1, 1); _alphaTest = 0; _blendMode = 1; }
/// <summary> /// Initializes a new instance of the <see cref="LensFlareElement" /> class. /// </summary> /// <param name="distance"> /// The distance of the element: 0 = light source, 1 = center of screen. /// Distance can be negative or greater than 1. The default value is 0. /// </param> /// <param name="scale"> /// The scale of the element relative to <see cref="LensFlare.Size"/>. /// </param> /// <param name="rotation"> /// The angle (in radians) to rotate the element around its center. <see cref="float.NaN"/> /// can be set to automatically rotate the element depending on the position of the light /// source. /// </param> /// <param name="color">The color of the element.</param> /// <param name="origin"> /// The origin relative to the image, where (0, 0) is the upper-left corner of the image and /// (1, 1) is the lower-right corner of the image. /// </param> /// <param name="texture">The texture containing the image.</param> public LensFlareElement(float distance, Vector2F scale, float rotation, Color color, Vector2F origin, PackedTexture texture) { Distance = distance; Scale = scale; Rotation = rotation; Color = color; Origin = origin; Texture = texture; }
protected virtual void CloneCore(LensFlareElement source) { Color = source.Color; Distance = source.Distance; Origin = source.Origin; Rotation = source.Rotation; Scale = source.Scale; Texture = source.Texture; }
/// <summary> /// Initializes a new instance of the <see cref="LensFlareElement" /> class. /// </summary> /// <param name="distance"> /// The distance of the element: 0 = light source, 1 = center of screen. /// Distance can be negative or greater than 1. The default value is 0. /// </param> /// <param name="scale"> /// The scale of the element relative to <see cref="LensFlare.Size"/>. /// </param> /// <param name="rotation"> /// The angle (in radians) to rotate the element around its center. <see cref="float.NaN"/> /// can be set to automatically rotate the element depending on the position of the light /// source. /// </param> /// <param name="color">The color of the element.</param> /// <param name="origin"> /// The origin relative to the image, where (0, 0) is the upper-left corner of the image and /// (1, 1) is the lower-right corner of the image. /// </param> /// <param name="texture">The texture containing the image.</param> public LensFlareElement(float distance, float scale, float rotation, Color color, Vector2F origin, PackedTexture texture) : this(distance, new Vector2F(scale), rotation, color, origin, texture) { }