Commit 24793aba authored by hybrid's avatar hybrid

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
parent 70e78d80
...@@ -151,7 +151,7 @@ namespace irr ...@@ -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;
}; };
......
...@@ -272,8 +272,6 @@ namespace irr ...@@ -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 ...@@ -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.
......
...@@ -25,8 +25,7 @@ namespace irr ...@@ -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 ...@@ -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);
} }
......
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