TextureHandle

Description

abstract class Tinman.Engine.Rendering.TextureHandle

Resource handle for texture objects.

Public / Constructors

File2D


public static method File2D → (1)

path in : Path

[not-null]
The texture file path.

returns → TextureHandle

The ITexture2D handle.

Creates a texture handle for the given file.

FileCube


public static method FileCube → (1)

path in : Path

[not-null]
The texture file path.

returns → TextureHandle

The ITextureCube handle.

Creates a texture handle for the given file.

The given texture file path in may point to an existing single cubemap texture file (e.g. ImageFormat.DDS) or to a non-existing file, which will then be used as the base name (for example: texture.txb) to discover six texture files (in ImageFormat.TXB format), one per cubemap face:

  • texture.X+.txb

  • texture.X-.txb

  • texture.Y+.txb

  • texture.Y-.txb

  • texture.Z+.txb

  • texture.Z-.txb

Protected / Attributes

path


protected readonly attribute path → (Path)

The texture file path.