#include <StkEglOpenGLContext.h>
|
|
| EglOpenGLContext (EGLContext eglContext) |
| |
| bool | initialize () override |
| | Returns false if GL function setup or platform-specific initialization fails.
|
| |
| PlatformHandleType | handle () const override |
| | Get unique handle based on the underlying GL Context object, for example EGLContext.
|
| |
| OpenGLFunctions * | functions () const override |
| |
| bool | isOpenGLES () const override |
| |
| std::string | getShaderVersionString () const override |
| |
|
EGLContext | eglContext () const |
| |
|
bool | isLost () const |
| |
|
void | markLost () |
| | Block subsequent operations on this context without unbinding an operation that is unwinding.
|
| |
|
bool | checkResetStatus () |
| | Check supported reset reporting and known loss without consuming GL errors. The platform context must be current.
|
| |
| virtual bool | initialize () |
| | Returns false if GL function setup or platform-specific initialization fails.
|
| |
|
void | cleanup () |
| | Cleanup context specific GL resources. Requires that this context is current!
|
| |
|
int | getMajorVersion () const |
| |
|
int | getMinorVersion () const |
| |
|
const std::string & | getVendorString () const |
| |
|
const std::string & | getRendererString () const |
| |
|
const std::string & | getVersionString () const |
| |
|
const std::string & | getExtensionString () const |
| |
| virtual PlatformHandleType | handle () const =0 |
| | Get unique handle based on the underlying GL Context object, for example EGLContext.
|
| |
|
virtual OpenGLFunctions * | functions () const =0 |
| |
|
virtual bool | isOpenGLES () const =0 |
| |
|
virtual std::string | getShaderVersionString () const =0 |
| |
|
bool | hasExtension (const char *ext) const |
| |
|
void | requestCleanupVAO (GLuint vao) |
| | Request that the VAO is cleaned up next time the context is current.
|
| |
|
void | requestCleanupVBO (GLuint vao) |
| |
|
void | requestCleanupTexture (GLuint tex) |
| |
|
bool | hasTextureFilterAnisotropic () const |
| |
|
bool | hasTextureCompression () const |
| |
|
bool | hasTextureCompressionS3TC () const |
| |
|
bool | makeCurrent () |
| | Set this context as current context. Will also process cleanup requests for this context.
|
| |
|
| GLenum | getResetStatus () const override |
| |
|
virtual GLenum | getResetStatus () const |
| |
|
|
using | PlatformHandleType = uintptr_t |
| |
|
static STK::OpenGLContext * | getContext (PlatformHandleType handle) |
| |
|
static OpenGLContext * | current () |
| |
|
static void | clearCurrent () |
| |
|
static OpenGLFunctions * | glFunctions () |
| | Utility for getting the glFunctions of the current context.
|
| |
|
static void | registerContext (OpenGLContext *context) |
| |
|
static void | unregisterContext (PlatformHandleType handle) |
| |
EglOpenGLContext - Default OpenGL implementation for EGL/GLES contexts. Used both for ANGLE-backed contexts on Windows and native EGL-backed OpenGL ES contexts such as Android.
◆ functions()
◆ getResetStatus()
| GLenum EglOpenGLContext::getResetStatus |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ getShaderVersionString()
| std::string STK::EglOpenGLContext::getShaderVersionString |
( |
| ) |
const |
|
overridevirtual |
◆ handle()
| STK::OpenGLContext::PlatformHandleType EglOpenGLContext::handle |
( |
| ) |
const |
|
overridevirtual |
Get unique handle based on the underlying GL Context object, for example EGLContext.
Implements STK::OpenGLContext.
◆ initialize()
| bool EglOpenGLContext::initialize |
( |
| ) |
|
|
overridevirtual |
Returns false if GL function setup or platform-specific initialization fails.
Reimplemented from STK::OpenGLContext.
◆ isOpenGLES()
| bool STK::EglOpenGLContext::isOpenGLES |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- Native/SilentToolkit/StkScene/StkEglOpenGLContext.h
- Native/SilentToolkit/StkScene/StkEglOpenGLContext.cpp