Tutorial_11_Render

Description

class Tinman.Demo.Tutorials._1_LowLevel.Tutorial_11_Render

Derived from

Tutorial_10_Tinman abstract

Extended by

Tutorial_12_Culling

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

Tinman 3D tutorial #11 : Render

This tutorial is a minimal example for creating and rendering a terrain mesh.

Public / Constructors

Tutorial_11_​Render


public constructor Tutorial_11_Render → ()

Creates a new instance of Tutorial_11_Render.

Protected / Methods

Animate


protected virtual method Animate → (1)

time in : float32

The time index. Will be 0 for the first call and will strictly monotonically increase afterwards.

Animates the scene.

Create​Vertex​Format


protected static method CreateVertexFormat → (2)

highPrecision in : bool

Use high-precision coordinates?

texCoords in : bool

Use texture coordinates?

returns → IVertexFormat

The vertex format.

Helper method for creating a IVertexFormat object.


protected virtual method CreateVertexFormat → ()

returns → IVertexFormat

The vertex format.

Creates the vertex format to use for copying vertex data from the CPU vertex data arrays to the GPU vertex buffer.

Render​Models


[EmptyBody]
protected virtual method RenderModels → (1)

renderer in : ModelRenderer

The model renderer to use.

Renders 3D models into the scene.

Render​Simple


[EmptyBody]
protected virtual method RenderSimple → (1)

renderer in : Renderer

The renderer to use.

Renders simple 3D shapes into the scene.

Render​Terrain


protected virtual method RenderTerrain → ()

Renders the terrain.

When this method is called, the geometry buffer has been set and the terrain effect has begun.

Protected / Attributes

camera


protected attribute camera → (Camera)

Helper object that represents the scene camera.

camera​Info


protected attribute cameraInfo → (CameraInfo)

A CameraInfo object that is kept up-to-date by this class.

effect


[Owner]
protected attribute effect → (ITerrainEffect)

The render effect for terrain meshes.

view​Frustum


protected attribute viewFrustum → (ViewFrustum)

A ViewFrustum object that is kept up-to-date by this class.

viewport


protected attribute viewport → (Viewport)

A Viewport object that is kept up-to-date by this class.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.