Example_TextureStreaming

Description

abstract class Tinman.Demo.Examples.Example_TextureStreaming

Full source code is included in the Tinman 3D SDK download.

This example shows how to setup the source data for performing texture streaming with TerrainDecal objects.

The implementations of this class use different streaming targets but share the logic for creating the streaming source.

Public / Attributes

Mode


public attribute Mode → (get,set)

value : InterpolationMode

The interpolation mode.

The interpolation mode to use for streaming.

Opacity


public attribute Opacity → (get,set)

value : float64

The opacity, will be clamped to [0..1].

The opacity of the terrain decals.

Protected / Constructors

Example_​Texture​Streaming


protected constructor Example_TextureStreaming → (2)

center in : LatLon

The value for center.

heading in : float64

The value for heading.

Creates a new instance of Example_TextureStreaming.

Protected / Methods

Create​Streaming


protected method CreateStreaming → (1)

target in : IStreamingTarget<TexelBuffer>

[not-null]
The streaming target.

Creates the streaming helper object.

Create​Terrain​Decal


protected method CreateTerrainDecal → ()

returns → TerrainDecal

The TerrainDecal object.

Creates a TerrainDecal for streaming.

Protected / Attributes

center


protected readonly attribute center → (LatLon)

The location of the terrain decal center.

heading


protected readonly attribute heading → (float64)

The heading of the terrain decals.

source


protected attribute source → (IStreamingSource<TexelBuffer>)

This is the streaming source.

streaming


[Owner]
protected attribute streaming → (Streaming<TexelBuffer>)

The streaming helper object.