CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Unit BaseGraph

Description

Base Graphics Unit

(C) 2006 George "Mirage" Bakhtadze. www.casteng.com
The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
Unit contains abstract classes for drawing 2D graphics

Classes, Interfaces and Objects

NameDescription
Class TBaseBitmapFont 
Class TBitmap 
Class TFont 
Class TGraphMessage 
Class TScreen 
Class TTrueTypeFont 

Functions and Procedures

Overview

function ClipLine(var X1, Y1: Single; var X2, Y2: Single; VPLeft, VPTop, VPRight, VPBottom: Single): Boolean;
function ClipLineColorTex(var X1, Y1, U1, V1: Single; var Color1: BaseTypes.TColor; var X2, Y2, U2, V2: Single; var Color2: BaseTypes.TColor; VPLeft, VPTop, VPRight, VPBottom: Single): Boolean;
function GetUnitClassList: TClassArray;

Description

function ClipLine(var X1, Y1: Single; var X2, Y2: Single; VPLeft, VPTop, VPRight, VPBottom: Single): Boolean;

Clips the given line with Cohen-Sutherland algorithm and returns True if at least some part of the line is visible

function ClipLineColorTex(var X1, Y1, U1, V1: Single; var Color1: BaseTypes.TColor; var X2, Y2, U2, V2: Single; var Color2: BaseTypes.TColor; VPLeft, VPTop, VPRight, VPBottom: Single): Boolean;

Clips the given colored and textured line with Cohen-Sutherland algorithm and returns True if at least some part of the line is visible

function GetUnitClassList: TClassArray;

Returns list of classes introduced by the unit

Types

Overview

T2DTransform = Base3D.TMatrix4s;
TFontStyle = set of TFontStyleFlags;
TViewport = record Left, Top, Right, Bottom: Single; end;

Description

T2DTransform = Base3D.TMatrix4s;

2D transformations class

TFontStyle = set of TFontStyleFlags;

Font style

TViewport = record Left, Top, Right, Bottom: Single; end;

Rectangular viewport

Enumerations

TFontStyleFlags
Font style flags
 fsBold 
 fsItalic 
 fsUnderline 
 fsStrikeOut 

Constants

Overview

ClearingZ = 1.0;

Description

ClearingZ = 1.0;

Initial Z value for 2D primitives

Variables

Overview

Screen: TScreen;

Description

Screen: TScreen;

Screen reference which should be used for 2D output

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com