| Description | Hierarchy | Fields | Methods | Properties |
type TIrrlichtDevice = class(TReferenceCounted)
The Main Engine Class
![]() |
constructor Create(const Params: TIrrlichtCreationParameters); overload; |
![]() |
constructor Create(DriverType: TVideoDriverType; const WindowSize: TSize; BitsPerPixel: LongWord = 16; FullScreen: Boolean = False; StencilBuffer: Boolean = False; VSync: Boolean = False; Receiver: TCustomEventReceiver = nil); overload; |
![]() |
constructor Create(DriverType: TVideoDriverType = vdtSoftware); overload; |
![]() |
destructor Destroy; override; |
![]() |
function ActivateJoysticks: TJoystickInfo; inline; |
![]() |
function GetGammaRamp: TGammaRamp; inline; |
![]() |
function GetVideoModeList: TVideoModeList; inline; |
![]() |
function IsFullScreen: Boolean; inline; |
![]() |
class function IsVideoDriverSupported(Driver: TVideoDriverType): Boolean; |
![]() |
function IsWindowActive: Boolean; inline; |
![]() |
function IsWindowFocused: Boolean; inline; |
![]() |
function IsWindowMinimized: Boolean; inline; |
![]() |
function PostEventFromUser(Event: TIrrlichtEvent): Boolean; inline; |
![]() |
function Run: Boolean; inline; |
![]() |
procedure ClearSystemMessages; inline; |
![]() |
procedure CloseDevice; inline; |
![]() |
procedure MaximizeWindow; inline; |
![]() |
procedure MinimizeWindow; inline; |
![]() |
procedure RestoreWindow; inline; |
![]() |
procedure SetGammaRamp(const Ramp: TGammaRamp); inline; |
![]() |
procedure SetInputReceivingSceneManager(Manager: TSceneManager); inline; |
![]() |
procedure Sleep(Milliseconds: LongWord; PauseTimer: Boolean = False); inline; |
![]() |
procedure Yield; inline; |
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
![]() |
property CursorControl: TCursorControl read FCursorControl; |
![]() |
property DeviceType: TDeviceType read GetDeviceType; |
![]() |
property EventReceiver: TCustomEventReceiver read FReceiver write FReceiver; |
![]() |
property FileSystem: TFileSystem read FFileSystem; |
![]() |
property GUIEnvironment: TGUIEnvironment read FGUIEnvironment; |
![]() |
property Logger: TLogger read FLogger; |
![]() |
property OSOperator: TOSOperator read FOSOperator; |
![]() |
property Resizable: Boolean read FResizable write SetResizable; |
![]() |
property SceneManager: TSceneManager read FSceneManager; |
![]() |
property Timer: TDeviceTimer read FTimer; |
![]() |
property Version: AnsiString read GetVersion; |
![]() |
property VideoDriver: TVideoDriver read FDriver; |
![]() |
property WindowCaption: StringType read FWindowCaption write SetWindowCaption; |
![]() |
constructor Create(const Params: TIrrlichtCreationParameters); overload; |
|
Creates and starts a new device from a parameter set. | |
![]() |
constructor Create(DriverType: TVideoDriverType; const WindowSize: TSize; BitsPerPixel: LongWord = 16; FullScreen: Boolean = False; StencilBuffer: Boolean = False; VSync: Boolean = False; Receiver: TCustomEventReceiver = nil); overload; |
|
Creates an Irrlicht device. If you need more parameters to be passed to the creation of the Irrlicht Engine device, use the constructor taking an TIrrlichtCreationParameters argument.
Parameters
| |
![]() |
constructor Create(DriverType: TVideoDriverType = vdtSoftware); overload; |
|
Overloaded for default parameters. | |
![]() |
destructor Destroy; override; |
|
Frees allocated resources. | |
![]() |
function ActivateJoysticks: TJoystickInfo; inline; |
|
Activates all available Joysticks and generates events for them. Irrlicht contains support for joysticks, but does not generate joystick events by default, as this would consume joystick info that 3rd party libraries might rely on. Call this method to activate joystick support in Irrlicht and to receive TJoystickEvent events. The returned object is managed by the engine. ReturnsInformation about the activated Joysticks, if any, else nil. | |
![]() |
function GetGammaRamp: TGammaRamp; inline; |
|
Get the current Gamma Value for the Display. | |
![]() |
function GetVideoModeList: TVideoModeList; inline; |
|
Gets a list with all video modes available. | |
![]() |
function IsFullScreen: Boolean; inline; |
|
Checks if the Irrlicht window is running in fullscreen mode. | |
![]() |
class function IsVideoDriverSupported(Driver: TVideoDriverType): Boolean; |
|
Check if a driver type is supported by the engine. | |
![]() |
function IsWindowActive: Boolean; inline; |
|
Returns if the window is active. | |
![]() |
function IsWindowFocused: Boolean; inline; |
|
Checks if the Irrlicht window has focus. | |
![]() |
function IsWindowMinimized: Boolean; inline; |
|
Checks if the Irrlicht window is minimized. | |
![]() |
function PostEventFromUser(Event: TIrrlichtEvent): Boolean; inline; |
|
Sends a user created event to the engine. | |
![]() |
function Run: Boolean; inline; |
|
Runs the device. | |
![]() |
procedure ClearSystemMessages; inline; |
|
Remove messages pending in the system message loop. | |
![]() |
procedure CloseDevice; inline; |
|
Notifies the device that it should close itself. | |
![]() |
procedure MaximizeWindow; inline; |
|
Maximizes the window if possible. | |
![]() |
procedure MinimizeWindow; inline; |
|
Minimizes the window if possible. | |
![]() |
procedure RestoreWindow; inline; |
|
Restore the window to normal size if possible. | |
![]() |
procedure SetGammaRamp(const Ramp: TGammaRamp); inline; |
|
Set the current Gamma Value for the Display. | |
![]() |
procedure SetInputReceivingSceneManager(Manager: TSceneManager); inline; |
|
Sets the input receiving scene manager. | |
![]() |
procedure Sleep(Milliseconds: LongWord; PauseTimer: Boolean = False); inline; |
|
Pause execution and let other processes to run for a specified amount of time. | |
![]() |
procedure Yield; inline; |
|
Cause the device to temporarily pause execution and let other processes run. | |
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
|
Get the current color format of the window. | |
![]() |
property CursorControl: TCursorControl read FCursorControl; |
|
Provides access to the cursor control. | |
![]() |
property DeviceType: TDeviceType read GetDeviceType; |
|
Get the type of the device. | |
![]() |
property EventReceiver: TCustomEventReceiver read FReceiver write FReceiver; |
|
Provides access to the current event receiver. | |
![]() |
property FileSystem: TFileSystem read FFileSystem; |
|
Provides access to the virtual file system. | |
![]() |
property GUIEnvironment: TGUIEnvironment read FGUIEnvironment; |
|
Provides access to the 2d user interface environment. | |
![]() |
property Logger: TLogger read FLogger; |
|
Provides access to the message | |
![]() |
property OSOperator: TOSOperator read FOSOperator; |
|
Provides access to the operation system operator object. | |
![]() |
property Resizable: Boolean read FResizable write SetResizable; |
|
Sets if the window should be | |
![]() |
property SceneManager: TSceneManager read FSceneManager; |
|
Provides access to the scene manager. | |
![]() |
property Timer: TDeviceTimer read FTimer; |
|
Provides access to the engine's | |
![]() |
property Version: AnsiString read GetVersion; |
|
Get the | |
![]() |
property VideoDriver: TVideoDriver read FDriver; |
|
Provides access to the video driver for drawing 3d and 2d geometry. | |
![]() |
property WindowCaption: StringType read FWindowCaption write SetWindowCaption; |
|
The caption of the window. | |