aboutsummaryrefslogtreecommitdiffstats
path: root/android/opengles.c
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.c
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.c')
-rw-r--r--android/opengles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/opengles.c b/android/opengles.c
index 5a29d3a..f116f25 100644
--- a/android/opengles.c
+++ b/android/opengles.c
@@ -41,7 +41,7 @@ int android_gles_fast_pipes = 1;
#define DYNLINK_FUNCTIONS \
DYNLINK_FUNC(int,initLibrary,(void),(),return) \
DYNLINK_FUNC(int,setStreamMode,(int a),(a),return) \
- DYNLINK_FUNC(int,initOpenGLRenderer,(int width, int height, int port),(width,height,port),return) \
+ DYNLINK_FUNC(int,initOpenGLRenderer,(int width, int height, int port, OnPostFn onPost, void* onPostContext),(width,height,port,onPost,onPostContext),return) \
DYNLINK_FUNC(int,createOpenGLSubwindow,(void* window, int x, int y, int width, int height, float zRot),(window,x,y,width,height,zRot),return)\
DYNLINK_FUNC(int,destroyOpenGLSubwindow,(void),(),return)\
DYNLINK_FUNC(void,repaintOpenGLDisplay,(void),(),)\
@@ -141,14 +141,14 @@ BAD_EXIT:
}
int
-android_startOpenglesRenderer(int width, int height)
+android_startOpenglesRenderer(int width, int height, OnPostFn onPost, void* onPostContext)
{
if (!rendererLib) {
D("Can't start OpenGLES renderer without support libraries");
return -1;
}
- if (initOpenGLRenderer(width, height,ANDROID_OPENGLES_BASE_PORT) != 0) {
+ if (initOpenGLRenderer(width, height, ANDROID_OPENGLES_BASE_PORT, onPost, onPostContext) != 0) {
D("Can't start OpenGLES renderer?");
return -1;
}