Class LoadedTexture
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
A reference to a texture that has been uploaded onto the graphics cards, if TextureId is not zero
public class LoadedTexture : IDisposable
- Inheritance
-
LoadedTexture
- Implements
- Inherited Members
- Extension Methods
Constructors
LoadedTexture(ICoreClientAPI)
Creates an empty loaded texture context with the Client API.
public LoadedTexture(ICoreClientAPI capi)
Parameters
capi
ICoreClientAPIThe Client API
LoadedTexture(ICoreClientAPI, int, int, int)
Creates a loaded texture context with pre-set texture information.
public LoadedTexture(ICoreClientAPI capi, int textureId, int width, int height)
Parameters
capi
ICoreClientAPIThe Client API
textureId
intThe ID of the texture.
width
intThe width of the texture.
height
intThe height of the texture.
Fields
Height
Height of the texture.
public int Height
Field Value
TextureId
The OpenGL Texture Id
public int TextureId
Field Value
Width
Width of the texture.
public int Width
Field Value
capi
protected ICoreClientAPI capi
Field Value
disposed
protected bool disposed
Field Value
trace
protected string trace
Field Value
Properties
Disposed
public bool Disposed { get; }
Property Value
IgnoreUndisposed
Set this only you really know what you're doing
public bool IgnoreUndisposed { get; set; }
Property Value
Methods
Dispose()
Disposes of the loaded texture safely.
public virtual void Dispose()
~LoadedTexture()
protected ~LoadedTexture()