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

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.

CreateVertexFormat


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.

RenderModels


[EmptyBody]
protected virtual method RenderModels → (1)

renderer in : ModelRenderer

The model renderer to use.

Renders 3D models into the scene.

RenderSimple


[EmptyBody]
protected virtual method RenderSimple → (1)

renderer in : Renderer

The renderer to use.

Renders simple 3D shapes into the scene.

RenderTerrain


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.

cameraInfo


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.

viewFrustum


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.