Class TCastleControlCustom
Unit
CastleControl
Declaration
type TCastleControlCustom = class(TOpenGLControl)
Description
OpenGL control, with extensions for "Castle Game Engine", including Controls list for TUIControl instances. Use a descendant TCastleControl to have a ready TCastleControl.SceneManager for 3D world.
This extends TOpenGLControl, adding various features:
Hierarchy
- TOpenGLControl
- TCastleControlCustom
Overview
Methods
Properties
Description
Methods
 |
procedure DestroyHandle; override; |
|
 |
procedure DoExit; override; |
|
 |
procedure Resize; override; |
|
 |
procedure KeyDown(var Key: Word; Shift: TShiftState); override; |
|
 |
procedure KeyUp(var Key: Word; Shift: TShiftState); override; |
|
 |
procedure MouseDown(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override; |
|
 |
procedure MouseUp(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override; |
|
 |
procedure MouseMove(Shift: TShiftState; NewX, NewY: Integer); override; |
|
 |
function DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint): Boolean; override; |
|
 |
procedure DoUpdate; virtual; |
|
 |
constructor Create(AOwner: TComponent); override; |
|
 |
destructor Destroy; override; |
|
 |
function MakeCurrent(SaveOldToStack: boolean = false): boolean; override; |
|
 |
procedure Invalidate; override; |
|
 |
procedure Paint; override; |
|
 |
procedure ReleaseAllKeysAndMouse; |
|
 |
function SaveScreen: TRGBImage; |
Capture the current control contents to an image. These functions take care of flushing any pending redraw operations and capturing the screen contents correctly.
|
 |
function Rect: TRectangle; |
Rectangle representing the inside of this container. Always (Left,Bottom) are zero, and (Width,Height) correspond to container sizes.
|
Properties
 |
property GLInitialized: boolean read FGLInitialized; |
|
 |
property MousePosition: TVector2Single read FMousePosition write SetMousePosition; |
Current mouse position. See TTouch.Position for a documentation how this is expressed.
|
 |
property OnBeforeRender: TContainerEvent read GetOnBeforeRender write SetOnBeforeRender; |
|
 |
property TabOrder; |
|
 |
property TabStop default true; |
|
 |
property Container: TContainer read FContainer; |
|
Generated by PasDoc 0.13.0 on 2014-08-30 12:10:33
|