Table of Contents

Class MeshDataPoolMasterManager

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Holds all chunk mesh pools of the current running game

public class MeshDataPoolMasterManager
Inheritance
MeshDataPoolMasterManager
Inherited Members
Extension Methods

Constructors

MeshDataPoolMasterManager(ICoreClientAPI)

Initializes the master mesh data pool.

public MeshDataPoolMasterManager(ICoreClientAPI capi)

Parameters

capi ICoreClientAPI

The Client API.

Fields

DelayedPoolLocationRemoval

If true, RemoveLocation() only actually removes the location after 3 frames. Need to call OnFrame() to achieve that

public bool DelayedPoolLocationRemoval

Field Value

bool

currentDt

public float currentDt

Field Value

float

currentModelViewMatrix

public float[] currentModelViewMatrix

Field Value

float[]

shadowMVPMatrix

public float[] shadowMVPMatrix

Field Value

float[]

Methods

AddModelDataPool(MeshDataPool)

Adds a new pool to the master pool.

public void AddModelDataPool(MeshDataPool pool)

Parameters

pool MeshDataPool

The mesh data pool to add.

CalcFragmentation()

Calculates the fragmentation.

public float CalcFragmentation()

Returns

float

The resulting calculation.

DisposeAllPools(ICoreClientAPI)

Cleans up and gets rid of all the pools.

public void DisposeAllPools(ICoreClientAPI capi)

Parameters

capi ICoreClientAPI

The client API.

OnFrame(float, float[], float[])

public void OnFrame(float dt, float[] modelviewMatrix, float[] shadowMVPMatrix)

Parameters

dt float
modelviewMatrix float[]
shadowMVPMatrix float[]

QuantityModelDataPools()

The number of model pools in this master manager.

public int QuantityModelDataPools()

Returns

int

The number of model pools

RemoveDataPoolLocations(ModelDataPoolLocation[])

Removes the models with the given locations.

public void RemoveDataPoolLocations(ModelDataPoolLocation[] locations)

Parameters

locations ModelDataPoolLocation[]

The locations of the model data.