Support texture resizing.
This commit is contained in:
parent
e2bd48ec90
commit
739b75b0b6
8 changed files with 29 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue