Added copy constructor and assignment operator to cope with const member.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1474 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-08-08 12:53:27 +00:00
parent 8ac1ffd74e
commit 07fa12d085
1 changed files with 22 additions and 0 deletions

View File

@ -34,6 +34,28 @@ namespace irr
{ {
} }
SIrrlichtCreationParameters(const SIrrlichtCreationParameters& other) :
SDK_version_do_not_use(IRRLICHT_SDK_VERSION)
{*this = other;}
SIrrlichtCreationParameters& operator=(const SIrrlichtCreationParameters& other)
{
DriverType = other.DriverType;
WindowSize = other.WindowSize;
Bits = other.Bits;
ZBufferBits = other.ZBufferBits;
Fullscreen = other.Fullscreen;
Stencilbuffer = other.Stencilbuffer;
Vsync = other.Vsync;
AntiAlias = other.AntiAlias;
WithAlphaChannel = other.WithAlphaChannel;
IgnoreInput = other.IgnoreInput;
HighPrecisionFPU = other.HighPrecisionFPU;
EventReceiver = other.EventReceiver;
WindowId = other.WindowId;
return *this;
}
//! Type of the device. //! Type of the device.
/** This can currently be video::EDT_NULL, video::EDT_SOFTWARE, /** This can currently be video::EDT_NULL, video::EDT_SOFTWARE,
video::EDT_BURNINGSVIDEO, video::EDT_DIRECT3D8, video::EDT_BURNINGSVIDEO, video::EDT_DIRECT3D8,