Use the new vector class wherever possible.

This commit is contained in:
King_DuckZ 2014-02-10 01:20:16 +01:00
parent e2e932358b
commit abee07a844
5 changed files with 18 additions and 16 deletions

View file

@ -1,6 +1,7 @@
#ifndef id0F37904CB7274575B7E9419E615DA250
#define id0F37904CB7274575B7E9419E615DA250
#include "vector.hpp"
#include <string>
struct SDL_Texture;
@ -16,14 +17,13 @@ namespace cloonel {
void Reload ( void );
void Destroy ( void ) noexcept;
bool IsLoaded ( void ) const { return nullptr != m_texture; }
void Render ( int parX, int parY );
void Render ( const int2& parPos );
private:
const std::string m_path;
SDL_Texture* m_texture;
SDLMain* const m_sdlmain;
int m_width;
int m_height;
ushort2 m_size;
};
} //namespace cloonel