IRenderable

Description

interface Tinman.Engine.Application.IRenderable

Derived from

IRenderPreparable

Extended by

EnvironmentMapResource sealed
IApplication
IWidget
SceneView sealed
ScreenQuad sealed
Sky sealed
TerrainView sealed

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

Public / Methods

Render


public method Render → ()

Performs rendering of the next frame.

Implementing methods should not assume that any specific render state is in place when being called. The implementing method is responsible for setting up all state that is required for rendering. This may include requirements (for example, requiring that a proper render target has been specified via IGraphicsContext.SetRenderTarget) which must be fulfilled before the Render method is called. Such requirements must be documented by the implementing class.

Usually, implementing classes receive their current graphics context directly or indirectly from IApplication.GraphicsContextAttach or IGraphicsComponent.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 IRenderPreparable.RenderPrepare instead.

It is not guaranteed that the GPU will have processed all render commands of the last frame when this method is called, in order to render the next one.