Index

Package: Renderers

Description

package Renderers is

Classes

Renderer

type Renderer is new Object and Process with private;

Ancestors:

Primitive operations:

Adjust (overriding Objects.Adjust)
Construct
Delete (overriding Objects.Delete)
Draw_Frame
Get_Process_Name (overriding Processes.Get_Process_Name)
Objects.Construct (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)
Tick (overriding Processes.Tick)
A Renderer is a member of the Game View system and is responsible for drawing a Window widget to the screen. Only one renderer exists per application. It implements the Process interface to draw on a tick when the specified framerate allows. The renderer uses double-buffering for updating frames.

Types

A_Renderer

type A_Renderer is access all Renderer'Class;

Subprograms & Entries

Create_Renderer

function Create_Renderer
( win: not null A_Window;
fps: Positive ) return A_Renderer;
Create a Renderer object that draws 'win' to the screen at a maximum frequency of 'fps'. For best performance, do not attach the Renderer to a Process_Manager running at a frequency less than 'fps'; it's best if the Process is ticked at the same frequency, or a multiple of it.

Copy

function Copy
( src: A_Renderer ) return A_Renderer;
Copies the Renderer. Its window widget is not copied, just re-referenced.

Delete

procedure Delete
( this: in out A_Renderer );
Deletes the Renderer.

Use_Software_Mouse

procedure Use_Software_Mouse;
Instructs renderers to draw a software mouse. This flag is checked when a Renderer is constructed, so it will not affect existing Renderer instances.