Draw and move the texture.

Display the test texture and move it on a line.
The program is unresponsive to events and quits automatically after 15 seconnds.
This commit is contained in:
King_DuckZ 2014-02-09 01:19:40 +01:00
parent a8f8d50129
commit fb92097419
7 changed files with 50 additions and 10 deletions

View file

@ -16,12 +16,14 @@ namespace cloonel {
void Reload ( void );
void Destroy ( void ) noexcept;
bool IsLoaded ( void ) const { return nullptr != m_texture; }
void Render ( void );
void Render ( int parX, int parY );
private:
const std::string m_path;
SDL_Texture* m_texture;
SDLMain* const m_sdlmain;
int m_width;
int m_height;
};
} //namespace cloonel