BuffersUtil

Description

static class Tinman.Terrain.Buffers.BuffersUtil

Helper class for the sample buffer API.

Public / Methods

ShiftCallback


public static method ShiftCallback → (5)

in : int32

Shift amount along buffer X-axis.

in : int32

Shift amount along buffer Y-axis.

width in : int32

The buffer with.

height in : int32

The buffer height.

callback opt : ICollector<Box2I> = null

The callback to use (can be null).

returns → int32

-1 if the entire buffer has become invalid due to the shift, 1 if the buffer has become partially invalid or 0 if no shift has been performed (i.e. both in and in are 0).

Performs the proper callbacks to the given callback opt for the specified buffer shift.