Repository navigation
Add EGL and GLES version string retrieval functions and update related structures - #1351
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new functionality to expose the EGL and GLES version strings reported by the graphics driver to the rest of the codebase and to Python consumers. The main changes involve capturing these version strings during EGL initialization and making them accessible through new getter functions.
EGL/GLES Version String Exposure:
lib/gdi/egl/gles_version.h,lib/gdi/egl/gles_version.cpp: Added two newstd::stringvariables,eglVersionStringandglesVersionString, to store the driver-reported version strings. These are set during EGL initialization. [1] [2]lib/gdi/egl/gegldc.cpp: During EGL initialization ingEGLDC::tryInitEGL, the code now queries and stores the EGL and GLES version strings, and logs them for debugging.API Additions for Version Retrieval:
main/enigma.cpp: Added two new functions,getEGLVersionString()andgetGLESVersionString(), which return the stored version strings (or empty strings if EGL is not enabled).lib/python/enigma_python.i: Exposed the new getter functions to Python, allowing Python code to access the EGL and GLES version strings. [1] [2]Header and Dependency Updates:
main/enigma.cpp,lib/gdi/egl/gles_version.h: Included necessary headers and added#include <string>to support the new string variables. [1] [2]from enigma import getEGLVersionString, getGLESVersionString
getEGLVersionString() # e.g. "1.4"
getGLESVersionString() # e.g. "OpenGL ES 3.0 ..."