--- ---
|
TGUI
1.0-dev
|
Backend renderer that uses OpenGL ES 2 or 3 (depending on the loaded OpenGL ES context that you have to provide) More...
#include <TGUI/Backend/Renderer/GLES2/BackendRendererGLES2.hpp>
Public Types | |
| using | ContextLoadFuncReturnType = void (*)() |
| using | ContextLoadFuncType = ContextLoadFuncReturnType (*)(const char *name) |
| using | SDLContextLoadFuncType = void* (*)(const char *name) |
Public Member Functions | |
| BackendRendererGLES2 (ContextLoadFuncType contextLoadFunction) | |
| Initializes the backend renderer. This will initialize GLAD to use OpenGL ES. | |
| BackendRendererGLES2 (SDLContextLoadFuncType contextLoadFunction) | |
| Helper constructor so that you can pass SDL_GL_GetProcAddress without needing to cast the type. | |
| 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. | |
Public Member Functions inherited from tgui::BackendRenderer | |
| virtual | ~BackendRenderer ()=default |
| Virtual destructor. | |
| virtual TGUI_NODISCARD std::shared_ptr< BackendText > | createText () |
| Creates a new empty text object. | |
Backend renderer that uses OpenGL ES 2 or 3 (depending on the loaded OpenGL ES context that you have to provide)
| tgui::BackendRendererGLES2::BackendRendererGLES2 | ( | ContextLoadFuncType | contextLoadFunction | ) |
Initializes the backend renderer. This will initialize GLAD to use OpenGL ES.
| contextLoadFunction | Function that gets the address of an OpenGL function |
Examples of load functions are sf::Context::getFunction, SDL_GL_GetProcAddress and glfwGetProcAddress.
Example usage:
| tgui::BackendRendererGLES2::BackendRendererGLES2 | ( | SDLContextLoadFuncType | contextLoadFunction | ) |
Helper constructor so that you can pass SDL_GL_GetProcAddress without needing to cast the type.
| contextLoadFunction | Function that gets the address of an OpenGL function |
|
overridevirtual |
Creates a new empty texture object.
Implements tgui::BackendRenderer.
|
overridevirtual |
Get the maximum allowed texture size.
This maximum size is defined by the graphics driver. Most likely this will return 8192 or 16384.
Implements tgui::BackendRenderer.