TGUI  0.10-beta
tgui::BackendRenderer Class Referenceabstract

Base class for the backend renderer, which is responsible for creating text and texture objects. More...

#include <TGUI/Backend/Renderer/BackendRenderer.hpp>

Inheritance diagram for tgui::BackendRenderer:
tgui::BackendRendererGLES2 tgui::BackendRendererOpenGL3 tgui::BackendRendererSDL tgui::BackendRendererSFML

Public Member Functions

virtual ~BackendRenderer ()=default
 Virtual destructor.
 
virtual std::shared_ptr< BackendTextcreateText ()
 Creates a new empty text object. More...
 
virtual std::shared_ptr< BackendTexturecreateTexture ()=0
 Creates a new empty texture object. More...
 
virtual unsigned int getMaximumTextureSize ()=0
 Get the maximum allowed texture size. More...
 

Detailed Description

Base class for the backend renderer, which is responsible for creating text and texture objects.

Member Function Documentation

◆ createText()

virtual std::shared_ptr< BackendText > tgui::BackendRenderer::createText ( )
inlinevirtual

Creates a new empty text object.

Returns
Shared pointer to a new text object

◆ createTexture()

virtual std::shared_ptr< BackendTexture > tgui::BackendRenderer::createTexture ( )
pure virtual

Creates a new empty texture object.

Returns
Shared pointer to a new texture object

Implemented in tgui::BackendRendererGLES2, tgui::BackendRendererOpenGL3, tgui::BackendRendererSDL, and tgui::BackendRendererSFML.

◆ getMaximumTextureSize()

virtual unsigned int tgui::BackendRenderer::getMaximumTextureSize ( )
pure virtual

Get the maximum allowed texture size.

Returns
Maximum width and height that you should try to use in a single texture

This maximum size is defined by the graphics driver. Most likely this will return 8192 or 16384.

Implemented in tgui::BackendRendererGLES2, tgui::BackendRendererOpenGL3, tgui::BackendRendererSDL, and tgui::BackendRendererSFML.


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