55 SDL_Texture* texture_;
176 void* GetPixels()
const;
185 int GetPitch()
const;
195 explicit Texture(SDL_Texture* texture);
213#ifdef SDL2PP_WITH_IMAGE
298 SDL_Texture* Get()
const;
316 Texture& Update(
const Optional<Rect>& rect,
const void* pixels,
int pitch);
379 Texture& UpdateYUV(
const Optional<Rect>& rect,
const Uint8* yplane,
int ypitch,
const Uint8* uplane,
int upitch,
const Uint8* vplane,
int vpitch);
393 Texture& SetBlendMode(SDL_BlendMode blendMode = SDL_BLENDMODE_NONE);
407 Texture& SetAlphaMod(Uint8 alpha = 255);
423 Texture& SetColorMod(Uint8 r = 255, Uint8 g = 255, Uint8 b = 255);
438 Texture& SetColorAndAlphaMod(
const Color& color =
Color{255, 255, 255, SDL_ALPHA_OPAQUE});
453 LockHandle Lock(
const Optional<Rect>& rect = NullOpt);
467 Uint32 GetFormat()
const;
480 int GetAccess()
const;
492 int GetWidth()
const;
504 int GetHeight()
const;
516 Point GetSize()
const;
528 Uint8 GetAlphaMod()
const;
540 SDL_BlendMode GetBlendMode()
const;
554 void GetColorMod(Uint8& r, Uint8& g, Uint8 &b)
const;
567 Color GetColorAndAlphaMod()
const;
LockHandle & operator=(const LockHandle &other)=delete
Deleted assignment operator.
LockHandle(const LockHandle &other)=delete
Deleted copy constructor.
Image stored in the graphics card memory that can be used for fast drawing.
Definition Texture.hh:53
Texture(const Texture &other)=delete
Deleted copy constructor.
Texture & operator=(const Texture &other)=delete
Deleted assignment operator.