TGUI  1.6.1
Loading...
Searching...
No Matches
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::BackendRendererRaylib tgui::BackendRendererSDL tgui::BackendRendererSFML

Public Member Functions

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

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 ( )
inlinenodiscardvirtual

Creates a new empty text object.

Returns
Shared pointer to a new text object

◆ createTexture()

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

Creates a new empty texture object.

Returns
Shared pointer to a new texture object

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

◆ getMaximumTextureSize()

virtual unsigned int tgui::BackendRenderer::getMaximumTextureSize ( )
nodiscardpure 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::BackendRendererRaylib, tgui::BackendRendererSDL, and tgui::BackendRendererSFML.


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