diff options
Diffstat (limited to 'emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h')
-rw-r--r-- | emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h b/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h index 343f384..89a708b 100644 --- a/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h +++ b/emulator/opengl/host/libs/libOpenglRender/FrameBuffer.h @@ -59,6 +59,12 @@ public: int getWidth() const { return m_width; } int getHeight() const { return m_height; } + void getGLStrings(const char** vendor, const char** renderer, const char** version) const { + *vendor = m_glVendor; + *renderer = m_glRenderer; + *version = m_glVersion; + } + HandleType createRenderContext(int p_config, HandleType p_share, bool p_isGL2 = false); HandleType createWindowSurface(int p_config, int p_width, int p_height); HandleType createColorBuffer(int p_width, int p_height, GLenum p_internalFormat); @@ -133,5 +139,9 @@ private: OnPostFn m_onPost; void* m_onPostContext; unsigned char* m_fbImage; + + const char* m_glVendor; + const char* m_glRenderer; + const char* m_glVersion; }; #endif |