25#ifndef TGUI_BACKEND_RENDERER_OPENGL3_HPP
26#define TGUI_BACKEND_RENDERER_OPENGL3_HPP
28#include <TGUI/Backend/Renderer/OpenGL3/BackendTextureOpenGL3.hpp>
29#include <TGUI/Backend/Renderer/OpenGL3/BackendRenderTargetOpenGL3.hpp>
30#include <TGUI/Backend/Renderer/OpenGL3/CanvasOpenGL3.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 3 or 4 (depending on the loaded OpenGL context that you have to pro...
Definition BackendRendererOpenGL3.hpp:48
BackendRendererOpenGL3(ContextLoadFuncType contextLoadFunction)
Initializes the backend renderer. This will initialize GLAD to use (modern) OpenGL.
std::shared_ptr< BackendTexture > createTexture() override
Creates a new empty texture object.
unsigned int getMaximumTextureSize() override
Get the maximum allowed texture size.
BackendRendererOpenGL3(SDLContextLoadFuncType contextLoadFunction)
Helper constructor so that you can pass SDL_GL_GetProcAddress without needing to cast the type.
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