Class Texture2DFactory
Class to help create Texture2Ds.
Inherited Members
Namespace: InsaneScatterbrain.Services
Syntax
public static class Texture2DFactory
Methods
CreateDefault(int, int, bool)
Creates a new instance of Texture2D with a set of default specifications.
Declaration
public static Texture2D CreateDefault(int width, int height, bool fill = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The texture width. |
| int | height | The texture height. |
| bool | fill | If true the texture will be automatically filled with transparent pixels. |
Returns
| Type | Description |
|---|---|
| Texture2D | The created texture. |