aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/host/include/libOpenglRender
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-04-26 11:07:40 -0700
committerJesse Hall <jessehall@google.com>2012-05-01 13:20:12 -0700
commit81e372046c2212585a4ff518ccdcff950d476717 (patch)
tree0ca66a298762a5a05bfd6827d7c45f6e6ab55088 /emulator/opengl/host/include/libOpenglRender
parent5bd2fe9745469018aac48bde2ff05f72138b9ffa (diff)
downloadsdk-81e372046c2212585a4ff518ccdcff950d476717.zip
sdk-81e372046c2212585a4ff518ccdcff950d476717.tar.gz
sdk-81e372046c2212585a4ff518ccdcff950d476717.tar.bz2
Export GL strings through render_api
This also changes the strings reported by the default OpenGL ES 1.1/2.0 to OpenGL translators so they include the strings from the underlying OpenGL implementation. This will give more useful bug reports and SDK deployment statistics. Change-Id: Id2d231a4fe3c40157c24a63ec19785826e037fd3
Diffstat (limited to 'emulator/opengl/host/include/libOpenglRender')
-rw-r--r--emulator/opengl/host/include/libOpenglRender/render_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/emulator/opengl/host/include/libOpenglRender/render_api.h b/emulator/opengl/host/include/libOpenglRender/render_api.h
index 1004932..ebb02eb 100644
--- a/emulator/opengl/host/include/libOpenglRender/render_api.h
+++ b/emulator/opengl/host/include/libOpenglRender/render_api.h
@@ -101,6 +101,13 @@ DECL(int, setStreamMode, (int mode));
DECL(int, initOpenGLRenderer, (int width, int height, int portNum,
OnPostFn onPost, void* onPostContext));
+/* getHardwareStrings - describe the GPU hardware and driver.
+ * The underlying GL's vendor/renderer/version strings are returned to the
+ * caller. The pointers become invalid after a call to stopOpenGLRenderer().
+ */
+DECL(void, getHardwareStrings, (const char** vendor, const char** renderer,
+ const char** version));
+
/* createOpenGLSubwindow -
* Create a native subwindow which is a child of 'window'
* to be used for framebuffer display.