Rose
|
A gradient rendering kernel. More...
#include <Texture.h>
Public Member Functions | |
GradientTexture (const GradientTexture &)=delete | |
GradientTexture (GradientTexture &&)=default | |
GradientTexture & | operator= (const GradientTexture &)=delete |
GradientTexture & | operator= (GradientTexture &&)=delete |
GradientTexture (Renderer &renderer, const color::RGBA &topLeft, const color::RGBA &topRight, const color::RGBA &bottomLeft, const color::RGBA &bottomRight) | |
GradientTexture (Renderer &renderer, const color::RGBA &start, const color::RGBA &end, Orientation orientation=Orientation::Horizontal) | |
void | setColors (const color::RGBA &topLeft, const color::RGBA &topRight, const color::RGBA &bottomLeft, const color::RGBA &bottomRight) |
void | setColors (const color::RGBA &start, const color::RGBA &end, Orientation orientation=Orientation::Horizontal) |
![]() | |
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 |
A gradient rendering kernel.
This generates a small texture, which when rendered into a larger area is interpolated by the graphics hardware to a gradient across the destination. See: https://stackoverflow.com/questions/20348616/how-to-create-a-color-gradient-in-sdl