TextureCache.add

Adds a texture to the cache, adding a retain count to the texture. Texture caches only allow a single instance of a texture to be stored within.

class TextureCache
@nogc
uint
add

Parameters

texture Texture

The texture to add to the cache.

Return Value

Type: uint

The texture slot position of the added texture.

Meta