TGUI
1.6.1
|
Backend renderer that uses SDL_Renderer. More...
#include <TGUI/Backend/Renderer/SDL_Renderer/BackendRendererSDL.hpp>
Public Member Functions | |
BackendRendererSDL (SDL_Renderer *renderer) | |
Initializes the backend renderer. | |
std::shared_ptr< BackendTexture > | createTexture () override |
Creates a new empty texture object. | |
unsigned int | getMaximumTextureSize () override |
Get the maximum allowed texture size. | |
SDL_Renderer * | getInternalRenderer () const |
Returns a pointer to the SDL_Renderer object that was used to create this backend renderer. | |
Public Member Functions inherited from tgui::BackendRenderer | |
virtual | ~BackendRenderer ()=default |
Virtual destructor. | |
virtual std::shared_ptr< BackendText > | createText () |
Creates a new empty text object. | |
Backend renderer that uses SDL_Renderer.
tgui::BackendRendererSDL::BackendRendererSDL | ( | SDL_Renderer * | renderer | ) |
Initializes the backend renderer.
renderer | SDL_Renderer object that should be used for rendering |
|
nodiscardoverridevirtual |
Creates a new empty texture object.
Implements tgui::BackendRenderer.
|
nodiscard |
Returns a pointer to the SDL_Renderer object that was used to create this backend renderer.
|
nodiscardoverridevirtual |
Get the maximum allowed texture size.
This maximum size is defined by the graphics driver. Most likely this will return 8192 or 16384.
Implements tgui::BackendRenderer.