mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
28 lines
434 B
C++
28 lines
434 B
C++
Surface::Surface()
|
|
{
|
|
pimpl=new impl;
|
|
}
|
|
Surface::Surface(const Surface& inc) : Surface()
|
|
{
|
|
*pimpl=*(inc.pimpl);
|
|
}
|
|
Surface& Surface::operator = (const Surface& inc)
|
|
{
|
|
*pimpl=*(inc.pimpl);
|
|
return *this;
|
|
}
|
|
Surface::Surface(Surface&& inc)
|
|
{
|
|
pimpl=inc.pimpl;
|
|
inc.pimpl=nullptr;
|
|
}
|
|
Surface& Surface::operator = (Surface&& inc)
|
|
{
|
|
*(pimpl)=*(inc.pimpl);
|
|
return *this;
|
|
}
|
|
Surface::~Surface()
|
|
{
|
|
delete pimpl;
|
|
}
|