TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IRenderable in Tinman.AddOns.Application

Base interface for classes that perform rendering using some graphics context.

interface IRenderable extends IRenderPreparable
  base of IApplication
  IWidget
  ScreenQuad
  Sky
  TerrainView

Methods

Render

Performs rendering.

method Render ()

Remarks:

Implementing methods must not assume that any specific render state is in place when being called. Instead, the implementing method is responsible for setting up all state that is required for rendering.

Usually, implementing classes receive their current graphics context directly or indirectly from GraphicsContextAttach or GraphicsAttach.

In order to maximize parallelism between the CPU and GPU, only actual rendering (using the current graphics context) should be performed here. All other preparation resp. setup should be done in RenderPrepare instead.

See also:

IApplication.GraphicsContextAttach
IGraphicsComponent.GraphicsAttach

RenderPrepare

Prepares rendering.

method RenderPrepare ()
inherited IRenderPreparable.RenderPrepare

Remarks:

This method is called before Render, when the graphics context has not yet begun to render the scene.

All setup work that does not require a graphics context (e.g. matrix computation, per-frame visibility determination) should be done here. This can help to maximize parallelism between the CPU and the GPU.