25#ifndef TGUI_BACKEND_RENDERER_GLES2_HPP
26#define TGUI_BACKEND_RENDERER_GLES2_HPP
28#include <TGUI/Backend/Renderer/GLES2/BackendTextureGLES2.hpp>
29#include <TGUI/Backend/Renderer/GLES2/BackendRenderTargetGLES2.hpp>
30#include <TGUI/Backend/Renderer/GLES2/CanvasGLES2.hpp>
32#if !TGUI_BUILD_AS_CXX_MODULE
33 #include <TGUI/Backend/Renderer/BackendRenderer.hpp>
36#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
42TGUI_MODULE_EXPORT
namespace tgui
51 using ContextLoadFuncReturnType = void (*)();
52 using ContextLoadFuncType = ContextLoadFuncReturnType (*)(
const char *name);
54 using SDLContextLoadFuncType =
void* (*)(
const char *name);
82 TGUI_NODISCARD std::shared_ptr<BackendTexture>
createTexture()
override;
96 int m_maxTextureSize = 0;
Backend renderer that uses OpenGL ES 2 or 3 (depending on the loaded OpenGL ES context that you have ...
Definition BackendRendererGLES2.hpp:48
BackendRendererGLES2(SDLContextLoadFuncType contextLoadFunction)
Helper constructor so that you can pass SDL_GL_GetProcAddress without needing to cast the type.
std::shared_ptr< BackendTexture > createTexture() override
Creates a new empty texture object.
unsigned int getMaximumTextureSize() override
Get the maximum allowed texture size.
BackendRendererGLES2(ContextLoadFuncType contextLoadFunction)
Initializes the backend renderer. This will initialize GLAD to use OpenGL ES.
Base class for the backend renderer, which is responsible for creating text and texture objects.
Definition BackendRenderer.hpp:44
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38