From fc1b290951488b2c647051cdcecc90108f955e86 Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 22 Nov 2017 17:09:56 +0000 Subject: [PATCH] Fix a few places which called the driverType a deviceType (variable-names and documentation). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5584 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/01.HelloWorld/main.cpp | 2 +- include/irrlicht.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/01.HelloWorld/main.cpp b/examples/01.HelloWorld/main.cpp index c20d149b..9b43c69f 100644 --- a/examples/01.HelloWorld/main.cpp +++ b/examples/01.HelloWorld/main.cpp @@ -94,7 +94,7 @@ int main() object for doing anything with the engine. createDevice() has the following parameters: - - deviceType: Type of the device. This can currently be the Null-device, + - driverType: Type of the video driver. This can currently be the Null-device, one of the two software renderers, D3D9, or OpenGL. In this example we use EDT_BURNINGSVIDEO, but to try out, you might want to change it to EDT_SOFTWARE, EDT_NULL, EDT_DIRECT3D9, or EDT_OPENGL. diff --git a/include/irrlicht.h b/include/irrlicht.h index 705f6b2a..ec623487 100644 --- a/include/irrlicht.h +++ b/include/irrlicht.h @@ -311,7 +311,7 @@ namespace irr //! Creates an Irrlicht device. The Irrlicht device is the root object for using the engine. /** If you need more parameters to be passed to the creation of the Irrlicht Engine device, use the createDeviceEx() function. - \param deviceType: Type of the device. This can currently be video::EDT_NULL, + \param driverType: Type of the video driver to use. This can currently be video::EDT_NULL, video::EDT_SOFTWARE, video::EDT_BURNINGSVIDEO, video::EDT_DIRECT3D9 and video::EDT_OPENGL. \param windowSize: Size of the window or the video mode in fullscreen mode. \param bits: Bits per pixel in fullscreen mode. Ignored if windowed mode. @@ -327,7 +327,7 @@ namespace irr device could not be created. */ extern "C" IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice( - video::E_DRIVER_TYPE deviceType = video::EDT_SOFTWARE, + video::E_DRIVER_TYPE driverType = video::EDT_SOFTWARE, // parentheses are necessary for some compilers const core::dimension2d& windowSize = (core::dimension2d(640,480)), u32 bits = 32, @@ -338,7 +338,7 @@ namespace irr //! typedef for Function Pointer typedef IrrlichtDevice* (IRRCALLCONV *funcptr_createDevice )( - video::E_DRIVER_TYPE deviceType, + video::E_DRIVER_TYPE driverType, const core::dimension2d& windowSize, u32 bits, bool fullscreen,