Class TGameRenderer

Unit

Declaration

type TGameRenderer = class(TObject)

Description

Owns all sprite bitmaps and Buffer. Draws field first and opaque HUD last. The supplied presentation remains owned by the caller.

Source: src/Breakout.Renderer.Vcl.pas (line 20).

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public procedure Compose(const View: TGamePresentation; Width, Height: Integer);
Public procedure Paint(Target: TCanvas; const View: TGamePresentation; Width, Height: Integer);

Properties

Public property Buffer: Vcl.Graphics.TBitmap read FBuffer;
Public property Viewport: TViewport read FViewport;
Public property Metrics: TRenderMetrics read FMetrics;

Description

Methods

Public constructor Create;

This item has no description.

Source: src/Breakout.Renderer.Vcl.pas (line 35).

Public destructor Destroy; override;

This item has no description.

Source: src/Breakout.Renderer.Vcl.pas (line 36).

Public procedure Compose(const View: TGamePresentation; Width, Height: Integer);

Composes a complete frame, resizing the buffer only when needed. Reads presentation without advancing time. Width/Height are client pixels.

Source: src/Breakout.Renderer.Vcl.pas (line 39).

Public procedure Paint(Target: TCanvas; const View: TGamePresentation; Width, Height: Integer);

Composes then presents once to Target and updates paint metrics. This is a CPU/GDI measurement; no monitor/vsync completion is measured.

Source: src/Breakout.Renderer.Vcl.pas (line 42).

Properties

Public property Buffer: Vcl.Graphics.TBitmap read FBuffer;

Borrowed bitmap owned by the renderer; valid until it is destroyed.

Source: src/Breakout.Renderer.Vcl.pas (line 44).

Public property Viewport: TViewport read FViewport;

This item has no description.

Source: src/Breakout.Renderer.Vcl.pas (line 45).

Public property Metrics: TRenderMetrics read FMetrics;

This item has no description.

Source: src/Breakout.Renderer.Vcl.pas (line 46).


Generated by PasDoc 1.0.4.