Class TextureEventArgs
EventArgs to propagate changes of a ITextureBase object's life cycle and property changes. Used inside the TextureManager./>.
Inheritance
Inherited Members
Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public class TextureEventArgs : EventArgs
Constructors
TextureEventArgs(ITextureBase, TextureChangedEnum, Int32, Int32, Int32, Int32)
Constructor takes a Texture and a description which property of the Texture changed.
Declaration
public TextureEventArgs(ITextureBase texture, TextureChangedEnum textureChangedEnum, int xStart = 0, int yStart = 0, int width = 0, int height = 0)
Parameters
Type | Name | Description |
---|---|---|
ITextureBase | texture | The Texture which property of life cycle has changed. |
TextureChangedEnum | textureChangedEnum | The TextureChangedEnum describing which property of the Texture changed. |
System.Int32 | xStart | (optional) x offset -> where does the changed region start along x (from left to right)? |
System.Int32 | yStart | (optional) y offset -> where does the changed region start along y (from top to bottom)? |
System.Int32 | width | Width in pixels. |
System.Int32 | height | Height in pixels. |
Properties
ChangedEnum
Description enum providing details about what property of the Texture changed.
Declaration
public TextureChangedEnum ChangedEnum { get; }
Property Value
Type | Description |
---|---|
TextureChangedEnum |
Height
Height in pixels.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Texture
The Texture that triggered the event.
Declaration
public ITextureBase Texture { get; }
Property Value
Type | Description |
---|---|
ITextureBase |
Width
Width in pixels.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
XStart
x offset -> where does the changed region start along x (from left to right)?
Declaration
public int XStart { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
YStart
y offset -> where does the changed region start along y (from top to bottom)?
Declaration
public int YStart { get; }
Property Value
Type | Description |
---|---|
System.Int32 |