26#ifndef TGUI_BACKEND_RENDERER_OPENGL3_HPP
27#define TGUI_BACKEND_RENDERER_OPENGL3_HPP
29#include <TGUI/Backend/Renderer/OpenGL3/BackendTextureOpenGL3.hpp>
30#include <TGUI/Backend/Renderer/OpenGL3/BackendRenderTargetOpenGL3.hpp>
31#include <TGUI/Backend/Renderer/OpenGL3/CanvasOpenGL3.hpp>
33#if TGUI_BUILD_AS_CXX_MODULE
36 #include <TGUI/Backend/Renderer/BackendRenderer.hpp>
39#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
45TGUI_MODULE_EXPORT
namespace tgui
54 using ContextLoadFuncReturnType = void (*)();
55 using ContextLoadFuncType = ContextLoadFuncReturnType (*)(
const char *name);
57 using SDLContextLoadFuncType =
void* (*)(
const char *name);
88 TGUI_NODISCARD std::shared_ptr<BackendTexture>
createTexture()
override;
104 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:51
BackendRendererOpenGL3(ContextLoadFuncType contextLoadFunction)
Initializes the backend renderer. This will initialize GLAD to use (modern) OpenGL.
TGUI_NODISCARD std::shared_ptr< BackendTexture > createTexture() override
Creates a new empty texture object.
TGUI_NODISCARD 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:45
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39