2007-10-12 08:17:00 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2007-03-22 18:21:59 +00:00
|
|
|
#include "config.h"
|
2007-10-12 08:17:00 +00:00
|
|
|
#endif
|
2007-03-22 18:21:59 +00:00
|
|
|
|
2008-04-04 15:02:11 +00:00
|
|
|
#include "clutter-backend-egl.h"
|
2007-03-22 18:21:59 +00:00
|
|
|
#include "clutter-stage-egl.h"
|
2007-07-06 14:08:03 +00:00
|
|
|
#include "clutter-eglx.h"
|
2007-03-27 21:09:11 +00:00
|
|
|
|
|
|
|
#include "../clutter-main.h"
|
|
|
|
#include "../clutter-feature.h"
|
|
|
|
#include "../clutter-color.h"
|
|
|
|
#include "../clutter-util.h"
|
2007-03-22 18:21:59 +00:00
|
|
|
#include "../clutter-event.h"
|
2007-03-27 21:09:11 +00:00
|
|
|
#include "../clutter-enum-types.h"
|
|
|
|
#include "../clutter-private.h"
|
|
|
|
#include "../clutter-debug.h"
|
2007-05-22 09:31:40 +00:00
|
|
|
#include "../clutter-units.h"
|
2008-04-04 15:02:11 +00:00
|
|
|
#include "../clutter-container.h"
|
|
|
|
#include "../clutter-stage.h"
|
|
|
|
#include "../clutter-stage-window.h"
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2009-10-05 13:58:08 +00:00
|
|
|
static ClutterStageWindowIface *clutter_stage_egl_parent_iface = NULL;
|
|
|
|
|
2008-04-04 15:02:11 +00:00
|
|
|
static void clutter_stage_window_iface_init (ClutterStageWindowIface *iface);
|
|
|
|
|
|
|
|
G_DEFINE_TYPE_WITH_CODE (ClutterStageEGL,
|
|
|
|
clutter_stage_egl,
|
|
|
|
CLUTTER_TYPE_STAGE_X11,
|
|
|
|
G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW,
|
|
|
|
clutter_stage_window_iface_init));
|
2007-03-27 21:09:11 +00:00
|
|
|
|
|
|
|
static void
|
2009-10-05 13:58:08 +00:00
|
|
|
clutter_stage_egl_unrealize (ClutterStageWindow *stage_window)
|
2007-03-27 21:09:11 +00:00
|
|
|
{
|
2009-08-03 13:50:10 +00:00
|
|
|
ClutterBackend *backend = clutter_get_default_backend ();
|
|
|
|
ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (backend);
|
2009-10-05 13:58:08 +00:00
|
|
|
ClutterStageEGL *stage_egl = CLUTTER_STAGE_EGL (stage_window);
|
|
|
|
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2009-10-05 13:58:08 +00:00
|
|
|
CLUTTER_NOTE (BACKEND, "Unrealizing stage");
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2008-04-14 15:10:22 +00:00
|
|
|
clutter_x11_trap_x_errors ();
|
2008-02-07 12:55:51 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
if (!stage_x11->is_foreign_xwin && stage_x11->xwin != None)
|
2007-03-27 21:09:11 +00:00
|
|
|
{
|
2009-08-03 13:50:10 +00:00
|
|
|
XDestroyWindow (backend_x11->xdpy, stage_x11->xwin);
|
2009-07-31 17:34:51 +00:00
|
|
|
stage_x11->xwin = None;
|
2007-03-27 21:09:11 +00:00
|
|
|
}
|
|
|
|
else
|
2009-07-31 17:34:51 +00:00
|
|
|
stage_x11->xwin = None;
|
2007-03-27 21:09:11 +00:00
|
|
|
|
|
|
|
if (stage_egl->egl_surface)
|
2008-04-04 15:02:11 +00:00
|
|
|
{
|
|
|
|
eglDestroySurface (clutter_eglx_display (), stage_egl->egl_surface);
|
|
|
|
stage_egl->egl_surface = EGL_NO_SURFACE;
|
|
|
|
}
|
|
|
|
|
2009-08-03 13:50:10 +00:00
|
|
|
XSync (backend_x11->xdpy, False);
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2008-04-04 15:02:11 +00:00
|
|
|
clutter_x11_untrap_x_errors ();
|
2007-03-27 21:09:11 +00:00
|
|
|
}
|
|
|
|
|
2009-10-05 13:58:08 +00:00
|
|
|
static gboolean
|
2009-08-20 10:54:41 +00:00
|
|
|
_clutter_stage_egl_try_realize (ClutterStageWindow *stage_window, int *retry_cookie)
|
2007-03-27 21:09:11 +00:00
|
|
|
{
|
2009-10-05 13:58:08 +00:00
|
|
|
ClutterStageEGL *stage_egl = CLUTTER_STAGE_EGL (stage_window);
|
|
|
|
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
|
|
|
|
ClutterBackend *backend;
|
2008-04-04 15:02:11 +00:00
|
|
|
ClutterBackendEGL *backend_egl;
|
2008-06-23 09:55:42 +00:00
|
|
|
ClutterBackendX11 *backend_x11;
|
2009-08-20 10:54:41 +00:00
|
|
|
EGLConfig config;
|
2008-04-04 15:02:11 +00:00
|
|
|
EGLint config_count;
|
|
|
|
EGLBoolean status;
|
2009-08-20 10:54:41 +00:00
|
|
|
int i;
|
2009-07-31 17:34:51 +00:00
|
|
|
int num_configs;
|
|
|
|
EGLConfig *all_configs;
|
|
|
|
EGLint cfg_attribs[] = {
|
2009-08-20 10:54:41 +00:00
|
|
|
/* NB: This must be the first attribute, since we may
|
|
|
|
* try and fallback to no stencil buffer */
|
|
|
|
EGL_STENCIL_SIZE, 8,
|
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_RED_SIZE, 5,
|
|
|
|
EGL_GREEN_SIZE, 6,
|
|
|
|
EGL_BLUE_SIZE, 5,
|
2009-08-20 10:54:41 +00:00
|
|
|
|
|
|
|
EGL_BUFFER_SIZE, EGL_DONT_CARE,
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
#ifdef HAVE_COGL_GLES2
|
|
|
|
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
|
|
|
#else /* HAVE_COGL_GLES2 */
|
|
|
|
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
|
|
|
#endif /* HAVE_COGL_GLES2 */
|
|
|
|
|
|
|
|
EGL_NONE
|
|
|
|
};
|
|
|
|
EGLDisplay edpy;
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
/* Here we can change the attributes depending on the fallback count... */
|
|
|
|
|
|
|
|
/* Some GLES hardware can't support a stencil buffer: */
|
|
|
|
if (*retry_cookie == 1)
|
|
|
|
{
|
|
|
|
g_warning ("Trying with stencil buffer disabled...");
|
|
|
|
cfg_attribs[1 /* EGL_STENCIL_SIZE */] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* XXX: at this point we only have one fallback */
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-10-05 13:58:08 +00:00
|
|
|
backend = clutter_get_default_backend ();
|
|
|
|
backend_egl = CLUTTER_BACKEND_EGL (backend);
|
|
|
|
backend_x11 = CLUTTER_BACKEND_X11 (backend);
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
edpy = clutter_eglx_display ();
|
|
|
|
|
|
|
|
eglGetConfigs (edpy, NULL, 0, &num_configs);
|
|
|
|
|
|
|
|
all_configs = g_malloc (num_configs * sizeof (EGLConfig));
|
|
|
|
eglGetConfigs (clutter_eglx_display (),
|
|
|
|
all_configs,
|
|
|
|
num_configs,
|
|
|
|
&num_configs);
|
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
for (i = 0; i < num_configs; ++i)
|
2007-03-27 21:09:11 +00:00
|
|
|
{
|
2009-07-31 17:34:51 +00:00
|
|
|
EGLint red = -1, green = -1, blue = -1, alpha = -1, stencil = -1;
|
|
|
|
|
|
|
|
eglGetConfigAttrib (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
all_configs[i],
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_RED_SIZE, &red);
|
|
|
|
eglGetConfigAttrib (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
all_configs[i],
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_GREEN_SIZE, &green);
|
|
|
|
eglGetConfigAttrib (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
all_configs[i],
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_BLUE_SIZE, &blue);
|
|
|
|
eglGetConfigAttrib (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
all_configs[i],
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_ALPHA_SIZE, &alpha);
|
|
|
|
eglGetConfigAttrib (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
all_configs[i],
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_STENCIL_SIZE, &stencil);
|
|
|
|
CLUTTER_NOTE (BACKEND, "EGLConfig == R:%d G:%d B:%d A:%d S:%d \n",
|
|
|
|
red, green, blue, alpha, stencil);
|
|
|
|
}
|
2008-06-23 13:09:08 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
g_free (all_configs);
|
2007-10-12 08:17:00 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
status = eglChooseConfig (edpy,
|
|
|
|
cfg_attribs,
|
2009-08-20 10:54:41 +00:00
|
|
|
&config, 1,
|
2009-07-31 17:34:51 +00:00
|
|
|
&config_count);
|
|
|
|
if (status != EGL_TRUE)
|
|
|
|
{
|
2009-08-20 10:54:41 +00:00
|
|
|
g_warning ("eglChooseConfig failed");
|
2009-07-31 17:34:51 +00:00
|
|
|
goto fail;
|
|
|
|
}
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
if (stage_x11->xwin == None)
|
|
|
|
stage_x11->xwin =
|
2009-08-03 13:50:10 +00:00
|
|
|
XCreateSimpleWindow (backend_x11->xdpy,
|
|
|
|
backend_x11->xwin_root,
|
2009-07-31 17:34:51 +00:00
|
|
|
0, 0,
|
|
|
|
stage_x11->xwin_width,
|
|
|
|
stage_x11->xwin_height,
|
|
|
|
0, 0,
|
2009-08-03 13:50:10 +00:00
|
|
|
WhitePixel (backend_x11->xdpy,
|
|
|
|
backend_x11->xscreen_num));
|
2009-07-31 17:34:51 +00:00
|
|
|
|
|
|
|
if (clutter_x11_has_event_retrieval ())
|
|
|
|
{
|
|
|
|
if (clutter_x11_has_xinput ())
|
2008-06-23 09:55:42 +00:00
|
|
|
{
|
2009-08-03 13:50:10 +00:00
|
|
|
XSelectInput (backend_x11->xdpy, stage_x11->xwin,
|
2009-07-31 17:34:51 +00:00
|
|
|
StructureNotifyMask |
|
|
|
|
FocusChangeMask |
|
|
|
|
ExposureMask |
|
|
|
|
EnterWindowMask | LeaveWindowMask |
|
|
|
|
PropertyChangeMask);
|
|
|
|
#ifdef USE_XINPUT
|
|
|
|
_clutter_x11_select_events (stage_x11->xwin);
|
2008-06-23 09:55:42 +00:00
|
|
|
#endif
|
|
|
|
}
|
2009-07-31 17:34:51 +00:00
|
|
|
else
|
2009-08-03 13:50:10 +00:00
|
|
|
XSelectInput (backend_x11->xdpy, stage_x11->xwin,
|
2009-07-31 17:34:51 +00:00
|
|
|
StructureNotifyMask |
|
|
|
|
FocusChangeMask |
|
|
|
|
ExposureMask |
|
|
|
|
PointerMotionMask |
|
|
|
|
KeyPressMask | KeyReleaseMask |
|
|
|
|
ButtonPressMask | ButtonReleaseMask |
|
|
|
|
EnterWindowMask | LeaveWindowMask |
|
|
|
|
PropertyChangeMask);
|
|
|
|
}
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
clutter_stage_x11_fix_window_size (stage_x11, -1, -1);
|
|
|
|
clutter_stage_x11_set_wm_protocols (stage_x11);
|
2008-04-14 17:01:14 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
if (stage_egl->egl_surface != EGL_NO_SURFACE)
|
|
|
|
{
|
|
|
|
eglDestroySurface (edpy, stage_egl->egl_surface);
|
|
|
|
stage_egl->egl_surface = EGL_NO_SURFACE;
|
|
|
|
}
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
stage_egl->egl_surface =
|
|
|
|
eglCreateWindowSurface (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
config,
|
2009-07-31 17:34:51 +00:00
|
|
|
(NativeWindowType) stage_x11->xwin,
|
|
|
|
NULL);
|
2007-04-28 00:37:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
if (stage_egl->egl_surface == EGL_NO_SURFACE)
|
|
|
|
{
|
2009-08-20 10:54:41 +00:00
|
|
|
g_warning ("Unable to create an EGL surface");
|
2009-07-31 17:34:51 +00:00
|
|
|
goto fail;
|
|
|
|
}
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
if (G_UNLIKELY (backend_egl->egl_context == None))
|
|
|
|
{
|
2008-06-23 13:09:08 +00:00
|
|
|
#ifdef HAVE_COGL_GLES2
|
2009-07-31 17:34:51 +00:00
|
|
|
static const EGLint attribs[3]
|
|
|
|
= { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
|
2008-04-04 15:02:11 +00:00
|
|
|
|
2009-07-31 17:34:51 +00:00
|
|
|
backend_egl->egl_context = eglCreateContext (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
config,
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_NO_CONTEXT,
|
|
|
|
attribs);
|
2008-06-25 11:17:43 +00:00
|
|
|
#else
|
2009-07-31 17:34:51 +00:00
|
|
|
/* Seems some GLES implementations 1.x do not like attribs... */
|
|
|
|
backend_egl->egl_context = eglCreateContext (edpy,
|
2009-08-20 10:54:41 +00:00
|
|
|
config,
|
2009-07-31 17:34:51 +00:00
|
|
|
EGL_NO_CONTEXT,
|
|
|
|
NULL);
|
2008-06-25 11:17:43 +00:00
|
|
|
#endif
|
2009-07-31 17:34:51 +00:00
|
|
|
if (backend_egl->egl_context == EGL_NO_CONTEXT)
|
|
|
|
{
|
2009-08-20 10:54:41 +00:00
|
|
|
g_warning ("Unable to create a suitable EGL context");
|
2009-07-31 17:34:51 +00:00
|
|
|
goto fail;
|
2008-04-04 15:02:11 +00:00
|
|
|
}
|
2009-07-31 17:34:51 +00:00
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
backend_egl->egl_config = config;
|
2009-07-31 17:34:51 +00:00
|
|
|
CLUTTER_NOTE (GL, "Created EGL Context");
|
2007-03-27 21:09:11 +00:00
|
|
|
}
|
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
*retry_cookie = 0;
|
|
|
|
return TRUE;
|
2008-05-12 Emmanuele Bassi <ebassi@openedhand.com>
Rework the stage wrapper/implementation relation: remove
duplicated code and all the bookkeeping from the backends into
ClutterStage whenever possible, to reduce the amount of work a
backend must do (and possibly get wrong). Thanks to Tommi
Komulainen.
* clutter/clutter-main.c:
(clutter_init_with_args), (clutter_init): Realize the default
stage after creation. The default stage is special, because we
use it in the initialization sequence. This removes the burden
from the backends and reduces the things a backend can get
wrong.
* clutter/clutter-stage.c:
(clutter_stage_show): Make sure to realize the implementation if
it hasn't been realized yet.
(clutter_stage_realize): Set the REALIZED flag and call
clutter_stage_ensure_current() if the implementation was
successfully realized.
(clutter_stage_unrealized): Call clutter_stage_ensure_current()
on unrealize.
* clutter/glx/clutter-backend-glx.c:
(clutter_backend_glx_create_stage): Do not realize the stage anymore
when creating it, and let the normal realization sequence take
place.
(clutter_backend_glx_ensure_context): Trap for X11 errors.
* clutter/glx/clutter-stage-glx.c:
(clutter_stage_glx_realize): Chain up to the X11 implementation
so that we can set up the window state (title, cursor visibility)
when we actually have a X window. Also, do not call
clutter_stage_ensure_current(), and rely on the wrapper to do
it for us. This means we can drop setting the REALIZED flag on
the wrapper.
(clutter_stage_glx_unrealize): Do not call
clutter_stage_ensure_current() ourselves, and rely on the wrapper
to do it for us.
* clutter/x11/clutter-stage-x11.c:
(set_wm_title), (set_cursor_visible): Move the WM title and
cursor visibility code inside their own functions.
(clutter_stage_x11_realize): Set the window title and whether the
cursor is visible or not after realizing the stage.
(clutter_stage_x11_set_cursor_visible),
(clutter_stage_x11_set_title): Call set_wm_title() and
set_cursor_visible().
(clutter_stage_x11_finalize): Free the title string.
* clutter/x11/clutter-stage-x11.h: Save more of the stage state,
so that we can set it even when the stage hasn't been realized
yet.
* clutter/eglnative/clutter-backend-egl.c:
(clutter_backend_egl_create_stage):
* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_unrealize),
(clutter_stage_egl_realize): Update the eglnative backend.
* clutter/eglx/clutter-backend-egl.c:
(clutter_backend_egl_ensure_context),
(clutter_backend_egl_create_stage):
* clutter/eglx/clutter-stage-egl.c:
(clutter_stage_egl_unrealize),
(clutter_stage_egl_realize): Update the eglx backend.
* clutter/sdl/clutter-backend-sdl.c:
(clutter_backend_sdl_create_stage):
* clutter/sdl/clutter-stage-sdl.c:
(clutter_stage_sdl_realize): Update the sdl backend.
* clutter/fruity/clutter-backend-fruity.c:
(clutter_backend_fruity_create_stage):
* clutter/sdl/clutter-stage-fruity.c:
(clutter_stage_fruity_realize): Update the fruity backend.
* tests/test-multistage.c (on_button_press): Bail out if
clutter_stage_new() returns NULL.
* HACKING.backends: Update backend writing documentation.
2008-05-12 15:26:37 +00:00
|
|
|
|
|
|
|
fail:
|
2009-10-05 13:58:08 +00:00
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
if (stage_egl->egl_surface != EGL_NO_SURFACE)
|
|
|
|
{
|
|
|
|
eglDestroySurface (backend_egl->edpy, stage_egl->egl_surface);
|
|
|
|
stage_egl->egl_surface = EGL_NO_SURFACE;
|
|
|
|
}
|
|
|
|
if (stage_x11->xwin != None)
|
|
|
|
{
|
|
|
|
XDestroyWindow (backend_x11->xdpy, stage_x11->xwin);
|
|
|
|
stage_x11->xwin = None;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* NB: We currently only support a single fallback option */
|
|
|
|
if (*retry_cookie == 0)
|
|
|
|
*retry_cookie = 1; /* tell the caller to try again */
|
|
|
|
else
|
|
|
|
*retry_cookie = 0; /* tell caller not to try again! */
|
|
|
|
|
2009-10-05 13:58:08 +00:00
|
|
|
return FALSE;
|
2007-03-27 21:09:11 +00:00
|
|
|
}
|
|
|
|
|
2009-08-20 10:54:41 +00:00
|
|
|
static gboolean
|
|
|
|
clutter_stage_egl_realize (ClutterStageWindow *stage_window)
|
|
|
|
{
|
|
|
|
int retry_cookie = 0;
|
|
|
|
|
|
|
|
CLUTTER_NOTE (BACKEND, "Realizing main stage");
|
|
|
|
|
|
|
|
while (1)
|
|
|
|
{
|
|
|
|
/* _clutter_stage_egl_try_realize supports fallbacks, and the number of
|
|
|
|
* fallbacks already tried is tracked in the retry_cookie, so what we are
|
|
|
|
* doing here is re-trying until we get told there are no more fallback
|
|
|
|
* options... */
|
|
|
|
if (_clutter_stage_egl_try_realize (stage_window, &retry_cookie))
|
|
|
|
{
|
|
|
|
gboolean ret = clutter_stage_egl_parent_iface->realize (stage_window);
|
|
|
|
if (G_LIKELY (ret))
|
|
|
|
CLUTTER_NOTE (BACKEND, "Successfully realized stage");
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
if (retry_cookie == 0)
|
|
|
|
return FALSE; /* we've been told not to try again! */
|
|
|
|
|
|
|
|
g_warning ("%s: Trying fallback", G_STRFUNC);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_return_val_if_reached (FALSE);
|
|
|
|
}
|
|
|
|
|
2007-03-27 21:09:11 +00:00
|
|
|
static void
|
|
|
|
clutter_stage_egl_dispose (GObject *gobject)
|
|
|
|
{
|
|
|
|
G_OBJECT_CLASS (clutter_stage_egl_parent_class)->dispose (gobject);
|
|
|
|
}
|
|
|
|
|
2008-04-04 15:02:11 +00:00
|
|
|
static void
|
|
|
|
clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
|
|
|
|
{
|
2009-10-05 13:58:08 +00:00
|
|
|
clutter_stage_egl_parent_iface = g_type_interface_peek_parent (iface);
|
|
|
|
|
|
|
|
iface->realize = clutter_stage_egl_realize;
|
|
|
|
iface->unrealize = clutter_stage_egl_unrealize;
|
|
|
|
|
2008-04-04 15:02:11 +00:00
|
|
|
/* the rest is inherited from ClutterStageX11 */
|
|
|
|
}
|
|
|
|
|
2007-03-22 18:21:59 +00:00
|
|
|
static void
|
2007-05-31 12:35:36 +00:00
|
|
|
clutter_stage_egl_class_init (ClutterStageEGLClass *klass)
|
2007-03-22 18:21:59 +00:00
|
|
|
{
|
2007-03-27 21:09:11 +00:00
|
|
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
2007-03-22 18:21:59 +00:00
|
|
|
|
2007-03-27 21:09:11 +00:00
|
|
|
gobject_class->dispose = clutter_stage_egl_dispose;
|
2007-03-22 18:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2007-05-31 12:35:36 +00:00
|
|
|
clutter_stage_egl_init (ClutterStageEGL *stage)
|
2007-03-22 18:21:59 +00:00
|
|
|
{
|
2007-03-27 21:09:11 +00:00
|
|
|
}
|