TextureAtlasHandle

Description

abstract class Tinman.Engine.Components.TextureAtlasHandle

Derived from

IResourceHandle

A resource handle for a TextureAtlas object.

Public / Methods

For

2 overloads


public static method For1 → (2)

buffer in : TerrainBuffer

[not-null]
The terrain buffer.

textureAtlas opt : int32 = 0

[>=0]
Index of the texture atlas of buffer in.

returns → TextureAtlasHandle

The created TextureAtlasHandle object.

Creates a TextureAtlasHandle for one of the texture atlases of the given terrain buffer.

Use this resource handle to re-use existing texture atlases, for example when combining 3D terrain rendering with 2D map rendering.


public static method For2 → (1)

options in : TextureAtlasOptions

[not-null]
The texture atlas options to use for creating a new texture atlas resource. An an independent copy of the given TextureAtlasOptions object will be used.

returns → TextureAtlasHandle

The created TextureAtlasHandle object.

Creates a TextureAtlasHandle for the given texture atlas options.