CAST II Game Engine |
||||||||
![]() |
MAIN | FEATURES | SCREENSHOTS | FORUMS | MANUAL | DOWNLOADS | CONTACTS | |
type TScreen = class(TSubsystem)
| Name | Description | |
|---|---|---|
![]() | Bitmap | Current drawing bitmap |
![]() | Color | Current drawing color |
![]() | CurrentX | Current position by X |
![]() | CurrentY | Current position by Y |
![]() | CurrentZ | Current position by Z (depth) (used for correct primitive order imitation via zbuffer) |
![]() | Font | Current drawing font |
![]() | LocalX | Current position by X in local corrdinate system |
![]() | LocalY | Current position by Y in local corrdinate system |
![]() | Transform | Current transform. Point of origin, rotation, scaling |
![]() | UV | Current drawing UV map |
![]() | Viewport | Current clipping viewport in local coordinates |
![]() | constructor Create; |
![]() | procedure Bar(X1, Y1, X2, Y2: Single); virtual; abstract; |
![]() | procedure Clear; virtual; |
![]() | procedure HandleMessage(const Msg: TMessage); override; |
![]() | procedure Line(X1, Y1, X2, Y2: Single); virtual; |
![]() | procedure LineTo(const X, Y: Single); virtual; abstract; |
![]() | procedure LineToVec(const Vec: TVector3s); |
![]() | procedure MoveTo(const X, Y: Single); virtual; |
![]() | procedure MoveToVec(const Vec: TVector3s); |
![]() | procedure PutText(const Str: string); virtual; abstract; |
![]() | procedure PutTextXY(const X, Y: Single; const Str: string); virtual; abstract; |
![]() | procedure Rectangle(X1, Y1, X2, Y2: Single); virtual; |
![]() | procedure Reset; virtual; |
![]() | procedure ResetViewport; virtual; |
![]() | procedure RotateScalePoint(var X, Y: Single); |
![]() | procedure RotateScalePointWith(const ATransform: T2DTransform; var X, Y: Single); |
![]() | procedure SetBitmap(const ABitmap: TBitmap); |
![]() | procedure SetColor(const AColor: BaseTypes.TColor); |
![]() | procedure SetFont(const AFont: TFont); virtual; |
![]() | procedure SetUV(const AUV: BaseTypes.TUV); |
![]() | procedure SetViewport(ALeft, ATop, ARight, ABottom: Single); |
![]() | procedure TransformPoint(var X, Y: Single); |
![]() | procedure TransformPointWith(const ATransform: T2DTransform; var X, Y: Single); |
![]() | constructor Create; |
![]() | procedure Bar(X1, Y1, X2, Y2: Single); virtual; abstract; |
Draws a filled rectangle with the given coordinates
![]() | procedure Clear; virtual; |
Clears and resets the screen
![]() | procedure HandleMessage(const Msg: TMessage); override; |
Message handler
![]() | procedure Line(X1, Y1, X2, Y2: Single); virtual; |
Draws a line between the given points
![]() | procedure LineTo(const X, Y: Single); virtual; abstract; |
Draws a line from current position to the given point and moves current position to the given point
![]() | procedure LineToVec(const Vec: TVector3s); |
Draws a line from current position to the given point and moves current position to the given point
![]() | procedure MoveTo(const X, Y: Single); virtual; |
Moves current position
![]() | procedure MoveToVec(const Vec: TVector3s); |
Moves current position
![]() | procedure PutText(const Str: string); virtual; abstract; |
Draw the given text string at current position
![]() | procedure PutTextXY(const X, Y: Single; const Str: string); virtual; abstract; |
Draw the given text string at the specified position
![]() | procedure Rectangle(X1, Y1, X2, Y2: Single); virtual; |
Draws a rectangle with the given coordinates
![]() | procedure Reset; virtual; |
Resets the screen
![]() | procedure ResetViewport; virtual; |
Resets current viewport and transform
![]() | procedure RotateScalePoint(var X, Y: Single); |
Transforms a point without translation
![]() | procedure RotateScalePointWith(const ATransform: T2DTransform; var X, Y: Single); |
Transforms a point with the given transform without translation
![]() | procedure SetBitmap(const ABitmap: TBitmap); |
Set current bitmap
![]() | procedure SetColor(const AColor: BaseTypes.TColor); |
Set current drawing color
![]() | procedure SetFont(const AFont: TFont); virtual; |
Set current font
![]() | procedure SetUV(const AUV: BaseTypes.TUV); |
Set current UV frame
![]() | procedure SetViewport(ALeft, ATop, ARight, ABottom: Single); |
Set current viewport
![]() | procedure TransformPoint(var X, Y: Single); |
Transforms a point with current transform
![]() | procedure TransformPointWith(const ATransform: T2DTransform; var X, Y: Single); |
Transforms a point with the given transform
![]() | property Height: Single; |
![]() | property Width: Single; |
![]() | property Height: Single; |
Screen height
![]() | property Width: Single; |
Screen width
|
Last modified: 26 Oct, 2008 |