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:
parent
a8f8d50129
commit
fb92097419
7 changed files with 50 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue