CAST II Game Engine

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

Class TCore

Unit

C2Core

Declaration

type TCore = class(TBaseCore)

Description

Engine core class

This class manages subsystems, controls items processing and rendering. Its Process() method should be called in main application cycle.

Hierarchy

TBaseCore > TItemsManager

Fields

 NameDescription
PublicCatchAllInputIf True all input item generate messages not only explicitly bound ones
PublicDefaultMaterialDefault material
PublicMaxIntervalMaximum possible interval between processing ticks

Methods

Overview

Publicconstructor Create; override;
Publicprocedure AddPass(const Item: TItem); override;
Publicprocedure ApplyDefaultCamera;
Publicprocedure ClearItems; override;
Protectedprocedure CollectGarbage; override;
Publicprocedure HandleMessage(const Msg: TMessage); override;
Protectedprocedure OnDestroy; override;
Publicprocedure Process;
Publicprocedure RemovePass(const Item: TItem); override;
Publicfunction TraceRay(const Ray: TVector3s; Depth: Single; out Items: TItems): Integer;

Description

Publicconstructor Create; override;

 

Publicprocedure AddPass(const Item: TItem); override;

For internal use only.

Publicprocedure ApplyDefaultCamera;

Finds in current scene and applies first found camera with Default property set to True

Publicprocedure ClearItems; override;

Clears current scene

Protectedprocedure CollectGarbage; override;

Clears garbage data. Called automatically

Publicprocedure HandleMessage(const Msg: TMessage); override;

 

Protectedprocedure OnDestroy; override;

Performs clean-up before destruction

Publicprocedure Process;

Performs main engine cycle. Items processing, rendering, collision, input, etc. Should be called from main application cycle.

Publicprocedure RemovePass(const Item: TItem); override;

For internal use only.

Publicfunction TraceRay(const Ray: TVector3s; Depth: Single; out Items: TItems): Integer;

Traces the given ray with the given depth and returns a list of items hit sorted by distance not implemented yet

Properties

Overview

Publicproperty FPSCountTimeout: TTimeUnit;
Publicproperty Input: Input;
Publicproperty Renderer: C2Render;
Publicproperty Timer: Timer;

Description

Publicproperty FPSCountTimeout: TTimeUnit;

Time to average frame rate through

Publicproperty Input: Input;

Input subsystem

Publicproperty Renderer: C2Render;

Renderer subsystem

Publicproperty Timer: Timer;

Timer subsystem. Must be assigned.

Last modified: 26 Oct, 2008
Copyright (C) 2006-2008, casteng.com