Commit ac8ee527 authored by hybrid's avatar hybrid

Initialisation changed to use createDeviceEX

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2031 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e3b37395
......@@ -80,7 +80,7 @@ private:
/*
The start of the main function starts like in most other example. We ask the user
for the desired renderer and start it up.
for the desired renderer and start it up. This time with the advanced parameter handling.
*/
int main()
{
......@@ -107,10 +107,12 @@ int main()
default: return 1;
}
// create device
IrrlichtDevice* device = createDevice(driverType,
core::dimension2d<s32>(640, 480));
// create device with full flexibility over creation parameters
// you can add more parameters if desired, check irr::SIrrlichtCreationParameters
irr::SIrrlichtCreationParameters params;
params.DriverType=driverType;
params.WindowSize=core::dimension2d<s32>(640, 480);
IrrlichtDevice* device = createDeviceEx(params);
if (device == 0)
return 1; // could not create selected driver.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment