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
GetAnimationCodes(ItemStack, int)
Returns the held item shape animation codes without creating an animation mesh.
string[] GetAnimationCodes(ItemStack itemstack, int variant)
Parameters
Returns
- string[]
GetAnimationModel(ItemStack, int, out MultiTextureMeshRef, out Shape)
Gets or creates the cached animation model for a held item.
void GetAnimationModel(ItemStack itemstack, int variant, out MultiTextureMeshRef modelRef, out Shape animationShape)
Parameters
itemstackItemStackvariantintmodelRefMultiTextureMeshRefanimationShapeShape
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 item)
Parameters
itemItem
Returns
ThreadDispose()
void ThreadDispose()