aboutsummaryrefslogtreecommitdiffstats
path: root/android/opengles.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-04-26 11:07:32 -0700
committerJesse Hall <jessehall@google.com>2012-05-01 13:20:11 -0700
commit733fffaac9ccebfc424fccf9467b22475f71a2f8 (patch)
tree41aa456fa6f10b8e442bb35b48186664131e4964 /android/opengles.h
parent5b658a4b19c685bcde26551e408bd3991a8d6618 (diff)
downloadexternal_qemu-733fffaac9ccebfc424fccf9467b22475f71a2f8.zip
external_qemu-733fffaac9ccebfc424fccf9467b22475f71a2f8.tar.gz
external_qemu-733fffaac9ccebfc424fccf9467b22475f71a2f8.tar.bz2
Provide GL strings from renderer to ddms ping
Change-Id: I59c9e58c568a70855783e57514fec80b711d6a64
Diffstat (limited to 'android/opengles.h')
-rw-r--r--android/opengles.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/android/opengles.h b/android/opengles.h
index 60e125d..4e83c02 100644
--- a/android/opengles.h
+++ b/android/opengles.h
@@ -33,6 +33,18 @@ int android_initOpenglesEmulation(void);
int android_startOpenglesRenderer(int width, int height,
OnPostFunc onPost, void* onPostContext);
+/* Retrieve the Vendor/Renderer/Version strings describing the underlying GL
+ * implementation. The call only works while the renderer is started.
+ *
+ * Each string is copied into the corresponding buffer. If the original string
+ * (including NUL terminator) is more than xxBufSize bytes, it will be
+ * truncated. In all cases, including failure, the buffer will be NUL-
+ * terminated when this function returns.
+ */
+void android_getOpenglesHardwareStrings(char* vendor, size_t vendorBufSize,
+ char* renderer, size_t rendererBufSize,
+ char* version, size_t versionBufSize);
+
int android_showOpenglesWindow(void* window, int x, int y, int width, int height, float rotation);
int android_hideOpenglesWindow(void);