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.

Texture​Format


public attribute TextureFormat → (get,set)

value : TextureFormat

The texture format or null to suspend streaming work.

The texture format that will be used for streaming.

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.

After creation, a texture format must be specified via TextureFormat.

Protected / Methods

Create​Streaming​Target


protected abstract method CreateStreamingTarget → (1)

format in : TextureFormat

[not-null]
The texture format to use.

returns → IStreamingTarget<TexelBuffer>

The streaming target.

Creates the streaming target.

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 or null if no texture format has been chosen yet.