Add a default ctor for ttexture.
This commit is contained in:
parent
91f00a4c65
commit
bccfa89910
2 changed files with 13 additions and 0 deletions
|
@ -68,6 +68,17 @@ ttexture::ttexture(SDL_Renderer& renderer,
|
|||
}
|
||||
|
||||
|
||||
ttexture::ttexture()
|
||||
: reference_count_(new unsigned(1))
|
||||
, texture_(NULL)
|
||||
, rotation_(0)
|
||||
, hscale_(1)
|
||||
, vscale_(1)
|
||||
, smooth_scaling_(false)
|
||||
, flip_(SDL_FLIP_NONE)
|
||||
, clip_()
|
||||
, source_surface_(NULL)
|
||||
{}
|
||||
|
||||
ttexture::~ttexture()
|
||||
{
|
||||
|
|
|
@ -99,6 +99,8 @@ public:
|
|||
*/
|
||||
ttexture(SDL_Renderer& renderer, const int access, const surface& surface);
|
||||
|
||||
ttexture();
|
||||
|
||||
~ttexture();
|
||||
|
||||
ttexture(const ttexture& texture);
|
||||
|
|
Loading…
Add table
Reference in a new issue