Table of Contents

Class MeshRef

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

A reference to a mesh that's been uploaded onto the graphics card (i.e. that has been placed in an OpenGL VAO). This reference can be used for rendering it.

public abstract class MeshRef : IDisposable
Inheritance
MeshRef
Implements
Inherited Members
Extension Methods

Properties

Disposed

Am I disposed?

public bool Disposed { get; protected set; }

Property Value

bool

Initialized

public abstract bool Initialized { get; }

Property Value

bool

MultidrawByTextureId

public bool MultidrawByTextureId { get; protected set; }

Property Value

bool

Methods

Dispose()

Frees up any gpu allocated memory. Equivalent to calling api.Render.DeleteMesh()

public virtual void Dispose()