Rose
Public Member Functions | List of all members
rose::sdl::GradientTexture Class Reference

A gradient rendering kernel. More...

#include <Texture.h>

Inheritance diagram for rose::sdl::GradientTexture:
Inheritance graph
[legend]
Collaboration diagram for rose::sdl::GradientTexture:
Collaboration graph
[legend]

Public Member Functions

 GradientTexture (const GradientTexture &)=delete
 
 GradientTexture (GradientTexture &&)=default
 
GradientTextureoperator= (const GradientTexture &)=delete
 
GradientTextureoperator= (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)
 
- Public Member Functions inherited from rose::sdl::Texture
 Texture (const Texture &)=delete
 
 Texture (Texture &&)=default
 
Textureoperator= (const Texture &)=delete
 
Textureoperator= (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
 

Detailed Description

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


The documentation for this class was generated from the following files: