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 Limited_Object and Process with private;

Ancestors:

Primitive operations:

Construct
Delete (overriding Objects.Delete)
Get_Process_Name (overriding Processes.Get_Process_Name)
Objects.Construct (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
( display: A_Allegro_Display;
win: not null A_Window;
fps: Positive ) return A_Renderer;
Create a Renderer object that draws 'win' to 'display' 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.

Delete

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