1 #ifndef GWORM_TEXTURE_H_
2 #define GWORM_TEXTURE_H_
21 Texture &operator =(Texture &&);
23 Texture(const Texture &) = delete;
24 Texture &operator =(const Texture &) = delete;
26 Texture(SDL_Renderer *, Uint32 format, int use, Vector<int> size);
31 Vector<int> Size() const { return size; }
33 /// stretch this texture to completely fill given render target
34 void Fill(SDL_Renderer *);
35 /// copy entire texture as is to given coordinates
36 void Copy(SDL_Renderer *, Vector<int> to);
37 /// copy entire texture stretched to given rect
38 void Copy(SDL_Renderer *, Rect<int> to);
40 /// set all color values
41 /// given array must hold at least Size().x * Size().y values
42 void SetColors(const Color *);
57 inline void swap<gworm::Texture>(gworm::Texture &lhs, gworm::Texture &rhs) {