Table of Contents

Class ShapeTextureSource

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class ShapeTextureSource : ITexPositionSource
Inheritance
ShapeTextureSource
Implements
Inherited Members
Extension Methods

Constructors

ShapeTextureSource(ICoreClientAPI, Shape, string)

public ShapeTextureSource(ICoreClientAPI capi, Shape shape, string filenameForLogging)

Parameters

capi ICoreClientAPI
shape Shape
filenameForLogging string

ShapeTextureSource(ICoreClientAPI, Shape, string, IDictionary<string, CompositeTexture>, TexturePathUpdater)

public ShapeTextureSource(ICoreClientAPI capi, Shape shape, string filenameForLogging, IDictionary<string, CompositeTexture> texturesSource, TexturePathUpdater pathUpdater)

Parameters

capi ICoreClientAPI
shape Shape
filenameForLogging string
texturesSource IDictionary<string, CompositeTexture>
pathUpdater TexturePathUpdater

Fields

firstTexPos

public TextureAtlasPosition? firstTexPos

Field Value

TextureAtlasPosition

textures

public Dictionary<string, CompositeTexture> textures

Field Value

Dictionary<string, CompositeTexture>

Properties

AtlasSize

This returns the size of the atlas this texture resides in.

public Size2i AtlasSize { get; }

Property Value

Size2i

this[string]

public TextureAtlasPosition this[string textureCode] { get; }

Parameters

textureCode string

Property Value

TextureAtlasPosition