26#ifndef TGUI_BACKEND_RENDERER_OPENGL3_HPP
27#define TGUI_BACKEND_RENDERER_OPENGL3_HPP
29#include <TGUI/Backend/Renderer/BackendRenderer.hpp>
30#include <TGUI/Backend/Renderer/OpenGL3/BackendTextureOpenGL3.hpp>
31#include <TGUI/Backend/Renderer/OpenGL3/BackendRenderTargetOpenGL3.hpp>
32#include <TGUI/Backend/Renderer/OpenGL3/CanvasOpenGL3.hpp>
46 using ContextLoadFuncReturnType = void (*)();
47 using ContextLoadFuncType = ContextLoadFuncReturnType (*)(
const char *name);
49 using SDLContextLoadFuncType =
void* (*)(
const char *name);
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:43
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:42
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36