aboutsummaryrefslogtreecommitdiffstats
path: root/android/opengles.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-03-21 11:49:42 -0700
committerJesse Hall <jessehall@google.com>2012-03-22 18:19:42 -0700
commit7105d422d800a624b4257798e0d81ec2045491d8 (patch)
tree8d78feef6a1edd0dc9e8dd81ad9c6b2d5e3e00d3 /android/opengles.h
parent26f4784a1cc9214e6a99eb20cf41862b704d326d (diff)
downloadexternal_qemu-7105d422d800a624b4257798e0d81ec2045491d8.zip
external_qemu-7105d422d800a624b4257798e0d81ec2045491d8.tar.gz
external_qemu-7105d422d800a624b4257798e0d81ec2045491d8.tar.bz2
EmuGL: Add OnPost callback to OpenGL renderer
Match the interface changes in the OpenGL renderer that add a per-frame callback. The callback isn't used in this change. This change is co-dependent on Idae3b026d52ed8dd666cbcdc3f3af80175c90ad3 in development/. Change-Id: Idae3b026d52ed8dd666cbcdc3f3af80175c90ad3
Diffstat (limited to 'android/opengles.h')
-rw-r--r--android/opengles.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/android/opengles.h b/android/opengles.h
index 2202e92..7bb6a3a 100644
--- a/android/opengles.h
+++ b/android/opengles.h
@@ -16,6 +16,10 @@
#define ANDROID_OPENGLES_BASE_PORT 22468
+/* See the description in render_api.h. */
+typedef void (*OnPostFn)(void* context, int width, int height, int ydir,
+ int format, int type, unsigned char* pixels);
+
/* Call this function to initialize the hardware opengles emulation.
* This function will abort if we can't find the corresponding host
* libraries through dlopen() or equivalent.
@@ -23,9 +27,11 @@
int android_initOpenglesEmulation(void);
/* Tries to start the renderer process. Returns 0 on success, -1 on error.
- * At the moment, this must be done before the VM starts.
+ * At the moment, this must be done before the VM starts. The onPost callback
+ * may be NULL.
*/
-int android_startOpenglesRenderer(int width, int height);
+int android_startOpenglesRenderer(int width, int height,
+ OnPostFn onPost, void* onPostContext);
int android_showOpenglesWindow(void* window, int x, int y, int width, int height, float rotation);