Interface ITesselatorManager
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Manager interface for Tesselators.
public interface ITesselatorManager
- Extension Methods
Methods
CreateMesh(string, CompositeShape, TextureSourceBuilder, ITexPositionSource)
MeshData CreateMesh(string typeForLogging, CompositeShape cshape, TextureSourceBuilder texgen, ITexPositionSource texSource = null)
Parameters
typeForLoggingstringcshapeCompositeShapetexgenTextureSourceBuildertexSourceITexPositionSource
Returns
GetCachedShape(AssetLocation)
Shape GetCachedShape(AssetLocation location)
Parameters
locationAssetLocation
Returns
GetDefaultBlockMesh(Block)
Returns the default block mesh that being used by the engine when tesselating a chunk. The alternate and inventory versions are seperate.
MeshData GetDefaultBlockMesh(Block block)
Parameters
blockBlock
Returns
GetDefaultBlockMeshRef(Block)
Returns the default block mesh ref that being used by the engine when rendering a block in the inventory. The alternate and inventory versions are seperate.
MultiTextureMeshRef GetDefaultBlockMeshRef(Block block)
Parameters
blockBlock
Returns
GetDefaultItemMeshRef(Item)
Returns the default block mesh ref that being used by the engine when rendering an item in the inventory. The alternate and inventory versions are seperate.
MultiTextureMeshRef GetDefaultItemMeshRef(Item block)
Parameters
blockItem
Returns
ThreadDispose()
void ThreadDispose()