|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
Classes | |
| class | Graphics |
| class | Image |
| class | ImageLoader |
| class | Input |
| class | TrueTypeFont |
Typedefs | |
| using | Graphics = fcn::sdl2::Graphics |
| using | Image = fcn::sdl2::Image |
| using | ImageLoader = fcn::sdl2::ImageLoader |
| using | Input = fcn::sdl2::Input |
| using | TrueTypeFont = fcn::sdl2::TrueTypeFont |
Functions | |
| std::shared_ptr< SDL_Renderer > | makeSDLSharedPtr (SDL_Renderer *renderer) |
| std::shared_ptr< SDL_Surface > | makeSDLSharedPtr (SDL_Surface *surface) |
| std::shared_ptr< SDL_Texture > | makeSDLSharedPtr (SDL_Texture *texture) |
| std::shared_ptr< SDL_Window > | makeSDLSharedPtr (SDL_Window *window) |
| template<typename T> | |
| T | SDLBlend (T source, T dest, unsigned char alpha) |
| template<typename T> | |
| T | SDLBlendColor (T src, T dst, unsigned char alpha, SDL_PixelFormat const *f) |
| Color | SDLgetPixel (SDL_Surface *surface, int x, int y) |
| void | SDLputPixel (SDL_Surface *surface, int x, int y, Color const &color) |
| void | SDLputPixelAlpha (SDL_Surface *surface, int x, int y, Color const &color) |
Unified header for the SDL backend.
| using fcn::sdl2::Graphics = fcn::sdl2::Graphics |
| using fcn::sdl2::Image = fcn::sdl2::Image |
| using fcn::sdl2::ImageLoader = fcn::sdl2::ImageLoader |
| using fcn::sdl2::Input = fcn::sdl2::Input |
| using fcn::sdl2::TrueTypeFont = fcn::sdl2::TrueTypeFont |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Blends two color components together.
| source | the source color component. |
| dest | the destination color component. |
| alpha | alpha value (0-255) used for blending. |
Definition at line 155 of file pixel.hpp.
Referenced by SDLBlendColor(), and SDLputPixelAlpha().
|
inline |
Blends two packed color values together using the supplied pixel format.
| src | the source packed color value. |
| dst | the destination packed color value. |
| alpha | alpha value (0-255) used for blending. |
| f | pixel format describing masks/shifts for color components. |
Definition at line 169 of file pixel.hpp.
References SDLBlend().
Referenced by SDLputPixelAlpha().
|
inline |
Checks a pixels color of an SDL_Surface.
| surface | an SDL_Surface where to check for a pixel color. |
| x | the x coordinate on the surface. |
| y | the y coordinate on the surface. |
Definition at line 27 of file pixel.hpp.
Referenced by fcn::sdl2::Image::getPixel().
|
inline |
Puts a pixel on an SDL_Surface.
| surface | The SDL_Surface to write the pixel to. |
| x | the x coordinate on the surface. |
| y | the y coordinate on the surface. |
| color | the color the pixel should be in. |
Definition at line 95 of file pixel.hpp.
References fcn::Color::b, fcn::Color::g, and fcn::Color::r.
Referenced by fcn::sdl2::Image::putPixel(), and SDLputPixelAlpha().
|
inline |
Puts a pixel on an SDL_Surface with alpha blending.
| surface | The SDL_Surface to write the pixel to. |
| x | the x coordinate on the surface. |
| y | the y coordinate on the surface. |
| color | the color the pixel should be in (including alpha). |
Definition at line 197 of file pixel.hpp.
References fcn::Color::a, fcn::Color::b, fcn::Color::g, fcn::Color::r, SDLBlend(), SDLBlendColor(), and SDLputPixel().