Rose
|
An encapsulation of the SDL_Texture structure. More...
#include <Texture.h>
Public Member Functions | |
Texture (const Texture &)=delete | |
Texture (Texture &&)=default | |
Texture & | operator= (const Texture &)=delete |
Texture & | operator= (Texture &&texture)=default |
Texture (SDL_Texture *texture) | |
Texture (Renderer &renderer, SDL_PixelFormatEnum format, SDL_TextureAccess access, int width, int height) | |
Constructor More... | |
Texture (Renderer &renderer, Size size) | |
Constructor. More... | |
int | setBlendMOde (SDL_BlendMode blendMode) |
std::tuple< int, int > | getSize () const noexcept |
An encapsulation of the SDL_Texture structure.
rose::sdl::Texture::Texture | ( | Renderer & | renderer, |
SDL_PixelFormatEnum | format, | ||
SDL_TextureAccess | access, | ||
int | width, | ||
int | height | ||
) |
Constructor.
Builds a Texture compatible with building up textures within Rose . The pixel format is SDL_PIXELFORMAT_RGBA8888, the texture access is SDL_TEXTUREACCESS_TARGET.
renderer | The renderer to use. |
size | The size of the texture. |