IrrStart

section index

## NAME

IrrStart - Start the Irrlicht-Engine

## SYNOPSIS

IrrStart(Irr_Device_Type.l, Width.l, Height.l, Fullscreen.l, Shadows.l, CaptureEvents.l)

## FUNCTION

Starts the Irrlicht Interface And opens a window For rendering. Only one irrlicht device object is supported by this wrapper. this call creates the device object, a video driver object, scene manager object and a GUI environment object that are exposed to PureBasic

## INPUTS

Irr_Device_Type.l | - | Type of the Device . See below the possible Values.
Width.l | - | specifies the width of the viewport in pixels
Height | - | specifies the height of the viewport in pixels
Fullscreen | - | specifies whether the display is to opened in full screen mode (#True) Or in a window (#False)
Shadows | - | Use shadows (#True) starts the engine in a mode that supports the rendering of stencil shadows.
CaptureEvents | - | specifies whether you want To capture keyboard,mouse and gui events, If you choose To ignore them they will be handled by Irrlicht For FPS camera control. This parameter should be either of: #True or #False

## RESULT

Returns #True if the start was Successfull.

## EXAMPLE

             If IrrStart( #IRR_EDT_OPENGL, screen_width, screen_height, #True, #True, #False ) = #True
               ....
               IrrStop()
             EndIf

## NOTES

Possible Device-Types :

* #IRR_EDT_NULL | =A NULL device With no display
* #IRR_EDT_SOFTWARE | =Irrlichts Default software renderer
* #IRR_EDT_SOFTWARE2 | =An improved quality software renderer
* #IRR_EDT_OPENGL | =Hardware accelerated OpenGL renderer
* #IRR_EDT_DIRECT3D | =Hardware accelerated DirectX 8 renderer (Binding not included in IrrlichtWrappers irrlicht.dll)
* #IRR_EDT_DIRECT3D9 | =Hardware accelerated DirectX 9 renderer