Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers |
Unit CastleWarnings
Description
Reporting warnings (OnWarning).
Overview
Functions and Procedures
Types
Variables
Description
Functions and Procedures
procedure OnWarningWrite(const AType: TWarningType; const Category, S: string); |
Assign this to OnWarning to report warnings using WarningWrite, and log them too. For Windows programs with no console available, WarningWrite will make a message box, in all other cases the warning just goes to ErrOutput. The warning is also logged using CastleLog.
|
Types
TWarningType = (...); |
Types of warnings.
Values
|
TWarningProc = procedure (const AType: TWarningType; const Category, S: string); |
|
Variables
OnWarning: TWarningProc = @OnWarningLog; |
Reporting warnings. Used by other units to report warnings about various data (images, sound files, 3D models), indicating that data is invalid in some way but we can continue.
You can assign any procedure here. You can ignore, or report this warning in any way. If you want to be really strict about the data correctness, you can also raise an exception (or raise it only when type is wtMajor).
The default behavior is to ignore possible warnings (as there is no safe cross-platform default place where they can be reported). Actually, you can initialize CastleLog to see warnings in the log. You can also assign your own callback to OnWarning to record and show warnings in any way.
|
Generated by PasDoc 0.12.1 on 2013-02-04 20:26:53
|