IVertexUpdater

Description

interface Tinman.Terrain.Kernel.IVertexUpdater

Derived from

IDataUpdater
IVertexArraysDependent

Extended by

VertexUpdater abstract
VertexUpdaterList sealed

Base interface for classes that process vertex data updates.

Vertex updates are performed inside of MeshBuffer.MeshUpdate. This is the sequence of method calls for vertex updates:

  1. IDataUpdater.Validate (returns true)

  2. IBeginEnd.Begin

  3. UpdateAll, to refresh all vertices after an invalid state.

  4. Update, to incrementally update all modified vertices.

  5. IBeginEnd.End

Public / Methods

Update


[BeginEnd]
public method Update → (2)

vertices in : int32 [ ]

[not-null]
An array that holds the vertex indices.

count in : int32

[>0]
Total number of indices to read from vertices in.

Updates data for the given vertices.

A typical implementation will read vertex data from the VertexArrays object, construct some application-specific vertex value and store that value in some kind of vertex buffer (e.g. for rendering).

Update​All


[BeginEnd]
public method UpdateAll → ()

Updates data for all vertices.

A typical implementation will read vertex data from the VertexArrays object, construct some application-specific vertex value and store that value in some kind of vertex buffer (e.g. for rendering).

Update​Bytes


public method UpdateBytes → ()

returns → int64

The amount of updated vertex data, in bytes.

Polls the amount of vertex data that has been updated via Update resp. UpdateAll so far.

This method will clear the byte counter, i.e. calling this method twice will return zero the second time.