_clutter_backend_egl_init (ClutterBackendEGL *backend_egl)
{
#ifndef COGL_HAS_XLIB_SUPPORT
- ClutterBackend *backend = CLUTTER_BACKEND (backend_egl);
#ifdef HAVE_TSLIB
backend_egl->event_timer = g_timer_new ();
#ifndef __CLUTTER_STAGE_EGL_H__
#define __CLUTTER_STAGE_EGL_H__
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <glib-object.h>
#include <clutter/clutter-stage.h>
+#ifdef COGL_HAS_X11_SUPPORT
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
+#include "../x11/clutter-stage-x11.h"
+#endif
#include "clutter-egl-headers.h"
#include "clutter-backend-egl.h"
-#include "../x11/clutter-stage-x11.h"
#define CLUTTER_TYPE_STAGE_EGL (_clutter_stage_egl_get_type ())
#define CLUTTER_STAGE_EGL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_EGL, ClutterStageEGL))
struct _ClutterStageEGL
{
- ClutterStageX11 parent_instance;
-
#ifdef COGL_HAS_X11_SUPPORT
+ ClutterStageX11 parent_instance;
+
EGLSurface egl_surface;
#else
+ GObject parent_instance;
+
/* the stage wrapper */
ClutterStage *wrapper;
struct _ClutterStageEGLClass
{
+#ifdef COGL_HAS_X11_SUPPORT
ClutterStageX11Class parent_class;
+#else
+ GObjectClass parent_class;
+#endif
};
GType _clutter_stage_egl_get_type (void) G_GNUC_CONST;