Index

Package: Renderers

Description

package Renderers is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

Renderer

type Renderer is new Object and Process with private;

Ancestors:

Primitive operations:

Adjust (overriding Adjust)
Construct (Inherited)
Construct
Delete (overriding Delete)
Get_Process_Name (overriding Get_Process_Name)
Object_Read (Inherited)
Object_Write (Inherited)
Tick (overriding Tick)
To_String (Inherited)
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.