From 4ea9911f575a1c324f8be1f20e0aa5810ac18852 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Fri, 4 Apr 2008 13:20:02 +0000 Subject: [PATCH] 2008-04-04 Matthew Allum * clutter/clutter-actor.c: Remove uneeded stage private member. Add show-on-set-parent prop and make so by default Actors are now automatically shown when reparented (#791) * clutter/eglx/clutter-backend-egl.c: * clutter/cogl/gles/cogl.c: A couple of minor comments. * clutter/eglnative/Makefile.am: Add missing clutter-egl.h header (back port from trunk) * tests/test-actors.c: Modify to take advantage of new show-on-set-parent functionality. --- gles/cogl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gles/cogl.c b/gles/cogl.c index aea9c22fd..f87812d81 100644 --- a/gles/cogl.c +++ b/gles/cogl.c @@ -359,6 +359,8 @@ cogl_texture_quad (gint x1, GE( glDrawArrays(GL_TRIANGLES, 0, 6) ); GE( glDisableClientState(GL_TEXTURE_COORD_ARRAY) ); GE( glDisableClientState(GL_VERTEX_ARRAY) ); + + /* Note also see glDrawTexxOES for potential optimisation */ } void @@ -645,8 +647,13 @@ cogl_fog_set (const ClutterColor *fog_color, glFogx (GL_FOG_END, (GLfixed) z_far); } -/* Offscreen - TODO: possible support from FBO's */ - +/* Offscreen - TODO: possible support from FBO's/PBuffers + * See; + * http://www.khronos.org/message_boards/viewtopic.php?t=589 + * http://www.gamedev.net/community/forums/topic.asp?topic_id=369739 + * + * Likely requires EGL 1.3 for eglBindTexImage +*/ COGLuint cogl_offscreen_create (COGLuint target_texture) {