mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
25 lines
362 B
C++
25 lines
362 B
C++
|
Texture::Texture()
|
||
|
{
|
||
|
pimpl=new impl;
|
||
|
}
|
||
|
Texture::Texture(const Texture& inc) : Texture()
|
||
|
{
|
||
|
*pimpl=*(inc.pimpl);
|
||
|
}
|
||
|
int Texture::getw()
|
||
|
{
|
||
|
return pimpl->w;
|
||
|
}
|
||
|
int Texture::geth()
|
||
|
{
|
||
|
return pimpl->h;
|
||
|
}
|
||
|
Texture::~Texture()
|
||
|
{
|
||
|
delete pimpl;
|
||
|
}
|
||
|
int Texture::updateSize()
|
||
|
{
|
||
|
return SDL_QueryTexture(pimpl->sText.get(),NULL,NULL,&pimpl->w,&pimpl->h);
|
||
|
}
|