1 #ifndef __SURFACE_TEXTURE_HPP__
2 #define __SURFACE_TEXTURE_HPP__
7 class ImageTexture : public Texture
16 float get_image_width() const
21 float get_image_height() const
26 float get_uv_right() const
28 return image_width / static_cast<float> (get_width());
31 float get_uv_bottom() const
33 return image_height / static_cast<float> (get_height());
50 friend class TextureManager;
52 ImageTexture(SDL_Surface* surface);
53 virtual ~ImageTexture();