Table of Contents

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

Constructors

LoadedTexture(ICoreClientAPI)

Creates an empty loaded texture context with the Client API.

public LoadedTexture(ICoreClientAPI capi)

Parameters

capi ICoreClientAPI

The 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 ICoreClientAPI

The Client API

textureId int

The ID of the texture.

width int

The width of the texture.

height int

The height of the texture.

Fields

Height

Height of the texture.

public int Height

Field Value

int

TextureId

The OpenGL Texture Id

public int TextureId

Field Value

int

Width

Width of the texture.

public int Width

Field Value

int

capi

protected ICoreClientAPI capi

Field Value

ICoreClientAPI

disposed

protected bool disposed

Field Value

bool

trace

protected string trace

Field Value

string

Properties

Disposed

public bool Disposed { get; }

Property Value

bool

IgnoreUndisposed

Set this only you really know what you're doing

public bool IgnoreUndisposed { get; set; }

Property Value

bool

Methods

Dispose()

Disposes of the loaded texture safely.

public virtual void Dispose()

~LoadedTexture()

protected ~LoadedTexture()