Cleaned up private version string parameter usage.

git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1376 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
hybrid 2008-06-13 13:35:03 +00:00
parent 11f0027021
commit 74fa36f184
3 changed files with 3 additions and 8 deletions

View File

@ -151,7 +151,7 @@ namespace irr
//! Don't use or change this parameter. //! Don't use or change this parameter.
/** Always set it to IRRLICHT_SDK_VERSION, which is done by default. /** Always set it to IRRLICHT_SDK_VERSION, which is done by default.
This is needed for sdk version checks. */ 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 \param vsync: Specifies vertical syncronisation: If set to true, the driver will wait
for the vertical retrace period, otherwise not. for the vertical retrace period, otherwise not.
\param receiver: A user created event receiver. \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 \return Returns pointer to the created IrrlichtDevice or null if the
device could not be created. device could not be created.
*/ */
@ -285,8 +283,7 @@ namespace irr
bool fullscreen = false, bool fullscreen = false,
bool stencilbuffer = false, bool stencilbuffer = false,
bool vsync = false, bool vsync = false,
IEventReceiver* receiver = 0, IEventReceiver* receiver = 0);
const c8* sdk_version_do_not_use = IRRLICHT_SDK_VERSION);
//! Creates an Irrlicht device with the option to specify advanced parameters. //! Creates an Irrlicht device with the option to specify advanced parameters.
/** Usually you should used createDevice() for creating an Irrlicht Engine device. /** 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, IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice(video::E_DRIVER_TYPE driverType,
const core::dimension2d<s32>& windowSize, const core::dimension2d<s32>& windowSize,
u32 bits, bool fullscreen, u32 bits, bool fullscreen,
bool stencilbuffer, bool vsync, IEventReceiver* res, bool stencilbuffer, bool vsync, IEventReceiver* res)
const char* version)
{ {
SIrrlichtCreationParameters p; SIrrlichtCreationParameters p;
p.DriverType = driverType; p.DriverType = driverType;
@ -36,7 +35,6 @@ namespace irr
p.Stencilbuffer = stencilbuffer; p.Stencilbuffer = stencilbuffer;
p.Vsync = vsync; p.Vsync = vsync;
p.EventReceiver = res; p.EventReceiver = res;
p.SDK_version_do_not_use = version;
return createDeviceEx(p); return createDeviceEx(p);
} }