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>
45 using ContextLoadFuncReturnType = void (*)(void);
46 using ContextLoadFuncType = ContextLoadFuncReturnType (*)(
const char *name);
48 using SDLContextLoadFuncType =
void* (*)(
const char *name);
95 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:42
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:41
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36