Support texture resizing.

This commit is contained in:
King_DuckZ 2014-02-22 12:25:16 +01:00
parent e2bd48ec90
commit 739b75b0b6
8 changed files with 29 additions and 14 deletions

View file

@ -17,7 +17,9 @@ namespace cloonel {
void Reload ( void );
void Destroy ( void ) noexcept;
bool IsLoaded ( void ) const { return nullptr != m_texture; }
void Render ( int2 parPos ) const;
void Render ( int2 parPos ) const { Render(parPos, m_size); }
void Render ( int2 parPos, ushort2 parSize ) const;
const SDLMain* SDLObject ( void ) const { return m_sdlmain; }
private:
const std::string m_path;