libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgAudio::SDLTextTexture Class Reference

#include <SDLTexture.hpp>

Inheritance diagram for AlgAudio::SDLTextTexture:
AlgAudio::SDLTexture

Public Member Functions

 SDLTextTexture (std::weak_ptr< Window > parent_window, SDL_Surface *s)
 
 SDLTextTexture (std::weak_ptr< Window > parent_window, Size2D s)
 
- Public Member Functions inherited from AlgAudio::SDLTexture
Size2D GetSize ()
 
SDLTextureoperator= (const SDLTexture &other)=delete
 
void Resize (Size2D size)
 
 SDLTexture (std::weak_ptr< Window > parent_window, Size2D size)
 
 SDLTexture (std::weak_ptr< Window > parent_window, SDL_Surface *)
 
 SDLTexture (const SDLTexture &other)=delete
 
 ~SDLTexture ()
 

Detailed Description

A speciallized texture type. Text textures are cached in 100% white, and modulated to desired color when rendering onto another texture. This is because alpha blend cache misbehaves when rendering onto an empty cache textures, leading to artefacts on letter edges.

Constructor & Destructor Documentation

AlgAudio::SDLTextTexture::SDLTextTexture ( std::weak_ptr< Window parent_window,
SDL_Surface *  s 
)
inline
AlgAudio::SDLTextTexture::SDLTextTexture ( std::weak_ptr< Window parent_window,
Size2D  s 
)
inline

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