TextureGC

Wrapper over Texture that automates destruction via GC or RAII.

Constructors

this
this(FluidBackend backend, string filename)

Load a texture from filename.

this
this(FluidBackend backend, Image data)

Load a texture from image data.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

Move constructor for TextureGC; increment the reference counter for the texture.

Alias This

texture

Members

Functions

release
Texture release()

Release the texture, moving it to manual management.

Variables

texture
Texture texture;

Underlying texture. Lifetime is bound to this struct.

Meta