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 Open in GitHub
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
capiICoreClientAPIThe 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
capiICoreClientAPIThe Client API
textureIdintThe ID of the texture.
widthintThe width of the texture.
heightintThe 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()