Cleaned up private version string parameter usage.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1376 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-06-13 13:35:03 +00:00
parent 70e78d80c9
commit 24793abad8
3 changed files with 3 additions and 8 deletions

View File

@ -151,7 +151,7 @@ namespace irr
//! Don't use or change this parameter.
/** Always set it to IRRLICHT_SDK_VERSION, which is done by default.
This is needed for sdk version checks. */
const c8* SDK_version_do_not_use;
const c8* const SDK_version_do_not_use;
};

View File

@ -272,8 +272,6 @@ namespace irr
\param vsync: Specifies vertical syncronisation: If set to true, the driver will wait
for the vertical retrace period, otherwise not.
\param receiver: A user created event receiver.
\param sdk_version_do_not_use: Don't use or change this parameter. Always set it to
IRRLICHT_SDK_VERSION, which is done by default. This is needed for sdk version checks.
\return Returns pointer to the created IrrlichtDevice or null if the
device could not be created.
*/
@ -285,8 +283,7 @@ namespace irr
bool fullscreen = false,
bool stencilbuffer = false,
bool vsync = false,
IEventReceiver* receiver = 0,
const c8* sdk_version_do_not_use = IRRLICHT_SDK_VERSION);
IEventReceiver* receiver = 0);
//! Creates an Irrlicht device with the option to specify advanced parameters.
/** Usually you should used createDevice() for creating an Irrlicht Engine device.

View File

@ -25,8 +25,7 @@ namespace irr
IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice(video::E_DRIVER_TYPE driverType,
const core::dimension2d<s32>& windowSize,
u32 bits, bool fullscreen,
bool stencilbuffer, bool vsync, IEventReceiver* res,
const char* version)
bool stencilbuffer, bool vsync, IEventReceiver* res)
{
SIrrlichtCreationParameters p;
p.DriverType = driverType;
@ -36,7 +35,6 @@ namespace irr
p.Stencilbuffer = stencilbuffer;
p.Vsync = vsync;
p.EventReceiver = res;
p.SDK_version_do_not_use = version;
return createDeviceEx(p);
}