示例#1
0
 /// <summary>
 /// Constructor takes a Texture and a description which property of the Texture changed.
 /// </summary>
 /// <param name="texture">The Texture which property of life cycle has changed.</param>
 /// <param name="textureChangedEnum">The <see cref="TextureChangedEnum"/> describing which property of the Texture changed.</param>
 /// <param name="xStart">(optional) x offset -> where does the changed region start along x (from left to right)?</param>
 /// <param name="yStart">(optional) y offset -> where does the changed region start along y (from top to bottom)?</param>
 /// <param name="width">Width in pixels.</param>
 /// <param name="height">Height in pixels.</param>
 public TextureEventArgs(ITextureBase texture, TextureChangedEnum textureChangedEnum, int xStart = 0, int yStart = 0, int width = 0, int height = 0)
 {
     Texture     = texture;
     ChangedEnum = textureChangedEnum;
     XStart      = xStart;
     YStart      = yStart;
     Width       = width;
     Height      = height;
 }
示例#2
0
 /// <summary>
 /// Constructor takes a Texture and a description which property of the Texture changed.
 /// </summary>
 /// <param name="texture">The Texture which property of life cycle has changed.</param>
 /// <param name="textureChangedEnum">The <see cref="TextureChangedEnum"/> describing which property of the Texture changed.</param>
 /// <param name="xStart">(optional) x offset -> where does the changed region start along x (from left to right)?</param>
 /// <param name="yStart">(optional) y offset -> where does the changed region start along y (from top to bottom)?</param>
 /// <param name="width">Width in pixels.</param>
 /// <param name="height">Height in pixels.</param>
 public TextureDataEventArgs(Texture texture, TextureChangedEnum textureChangedEnum, int xStart = 0, int yStart = 0, int width = 0, int height = 0)
 {
     _texture            = texture;
     _textureChangedEnum = textureChangedEnum;
     _xStart             = xStart;
     _yStart             = yStart;
     _width  = width;
     _height = height;
 }