Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates an immutable imported texture description.

API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime

public InnoEngine.Rendering.TextureAsset.TextureAsset(int width, int height, InnoEngine.Rendering.TextureColorSpace colorSpace, string sourceFormat)

Parameter width: The positive source pixel width.

Parameter height: The positive source pixel height.

Parameter colorSpace: The color-space interpretation used when sampling the texture.

Parameter sourceFormat: The normalized source container name without a leading period.

Exception T:System.ArgumentOutOfRangeException: Thrown when width or height is not positive.

Exception T:System.ArgumentException: Thrown when sourceFormat is empty or contains only white-space characters.