TGUI  1.6.1
Loading...
Searching...
No Matches
tgui::BackendRendererRaylib Class Reference

Backend renderer that uses raylib. More...

#include <TGUI/Backend/Renderer/Raylib/BackendRendererRaylib.hpp>

Inheritance diagram for tgui::BackendRendererRaylib:
tgui::BackendRenderer

Public Member Functions

 BackendRendererRaylib ()
 Initializes the backend renderer.
 
std::shared_ptr< BackendTexturecreateTexture () override
 Creates a new empty texture object.
 
unsigned int getMaximumTextureSize () override
 Get the maximum allowed texture size.
 
- Public Member Functions inherited from tgui::BackendRenderer
virtual ~BackendRenderer ()=default
 Virtual destructor.
 
virtual std::shared_ptr< BackendTextcreateText ()
 Creates a new empty text object.
 

Detailed Description

Backend renderer that uses raylib.

Since
TGUI 1.3

Member Function Documentation

◆ createTexture()

std::shared_ptr< BackendTexture > tgui::BackendRendererRaylib::createTexture ( )
nodiscardoverridevirtual

Creates a new empty texture object.

Returns
Shared pointer to a new texture object

Implements tgui::BackendRenderer.

◆ getMaximumTextureSize()

unsigned int tgui::BackendRendererRaylib::getMaximumTextureSize ( )
nodiscardoverridevirtual

Get the maximum allowed texture size.

Returns
Maximum width and height that you should try to use in a single texture
Warning
Raylib provides no method to query the limit. This function always returns 16384.

Implements tgui::BackendRenderer.


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