Creates the Texture texture.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public static Texture CreateTexture( Type manifestType, string name, Color key, bool autoMipMap ) |
Parameters
- manifestType
- Type: System..::.Type
The Type type defining the mesh location in the given library.
- name
- Type: System..::.String
Path to the mesh.
- key
- Type: System.Drawing..::.Color
Color to replace the transparent black or Empty for deactivating it.
- autoMipMap
- Type: System..::.Boolean
Defines whether the MIP maps automatic generation will be enabled.
Return Value
Created Texture texture.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | manifestType is nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::.ArgumentNullException | name is nullNothingnullptra null reference (Nothing in Visual Basic). |