Property | Type | Description | |
---|---|---|---|
disposed | bool | ||
texture | Texture |
Property | Type | Description | |
---|---|---|---|
InitMaterial | void | ||
LoadTexture | void | ||
RefreshMaterialFromPath | void | ||
RefreshTexture | void | ||
UnloadTexture | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases unmanaged and - optionally - managed resources.
|
|
Sprite ( ) : System |
Initializes a new instance of the Sprite class based on a content file.
|
|
Sprite ( Material material ) : System |
Initializes a new instance of the Sprite class based on a content file.
|
|
Sprite ( Texture texture ) : System |
Initializes a new instance of the Sprite class based on a texture. See Texture for more information.
|
|
Sprite ( string texturePath ) : System |
Initializes a new instance of the Sprite class based on a content file.
|
Method | Description | |
---|---|---|
DefaultValues ( ) : void |
The default values
|
|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources
|
|
Initialize ( ) : void |
Performs further custom initialization for this instance.
|
|
UpdateSourceRectangle ( ) : void |
The update source rectangle.
|
Method | Description | |
---|---|---|
InitMaterial ( ) : void |
Init material
|
|
LoadTexture ( ) : void |
Load texture
|
|
RefreshMaterialFromPath ( ) : void |
Init material
|
|
RefreshTexture ( ) : void |
Refresh the sprite texture
|
|
UnloadTexture ( ) : void |
Unload texture
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool |
/// |
return | void |
public Sprite ( Material material ) : System | ||
material | Material | The material used to render the sprite. |
return | System |
public Sprite ( Texture texture ) : System | ||
texture | Texture | The texture. |
return | System |
public Sprite ( string texturePath ) : System | ||
texturePath | string | The texture path to the content file. |
return | System |