1 #ifndef __SURFACE_TEXTURE_HPP__
2 #define __SURFACE_TEXTURE_HPP__
8 class ImageTexture : public Texture
17 float get_image_width() const
22 float get_image_height() const
27 float get_uv_right() const
29 return image_width / static_cast<float> (get_width());
32 float get_uv_bottom() const
34 return image_height / static_cast<float> (get_height());
51 friend class TextureManager;
53 ImageTexture(SDL_Surface* surface);
54 virtual ~ImageTexture();