diff options
author | Jesse Hall <jessehall@google.com> | 2012-04-26 11:07:32 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2012-05-01 13:20:11 -0700 |
commit | 733fffaac9ccebfc424fccf9467b22475f71a2f8 (patch) | |
tree | 41aa456fa6f10b8e442bb35b48186664131e4964 /android/opengles.h | |
parent | 5b658a4b19c685bcde26551e408bd3991a8d6618 (diff) | |
download | external_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.h | 12 |
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); |