mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
12e58c7813
The glx and egl(x) backends export some internal symbols. Hide these symbols (using '_' prefix) to reduce ABI differentiation between the glx and eglx flavours. http://bugzilla.clutter-project.org/show_bug.cgi?id=2267 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
#ifndef __CLUTTER_STAGE_EGL_H__
|
|
#define __CLUTTER_STAGE_EGL_H__
|
|
|
|
#include <glib-object.h>
|
|
#include <clutter/clutter-stage.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xatom.h>
|
|
#include <X11/Xutil.h>
|
|
|
|
#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))
|
|
#define CLUTTER_IS_STAGE_EGL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_EGL))
|
|
#define CLUTTER_STAGE_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_EGL, ClutterStageEGLClass))
|
|
#define CLUTTER_IS_STAGE_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_EGL))
|
|
#define CLUTTER_STAGE_EGL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_EGL, ClutterStageEGLClass))
|
|
|
|
typedef struct _ClutterStageEGL ClutterStageEGL;
|
|
typedef struct _ClutterStageEGLClass ClutterStageEGLClass;
|
|
|
|
struct _ClutterStageEGL
|
|
{
|
|
ClutterStageX11 parent_instance;
|
|
|
|
#ifdef COGL_HAS_X11_SUPPORT
|
|
|
|
EGLSurface egl_surface;
|
|
|
|
#else
|
|
|
|
/* the stage wrapper */
|
|
ClutterStage *wrapper;
|
|
|
|
/* back pointer to the backend */
|
|
ClutterBackendEGL *backend;
|
|
|
|
#endif
|
|
};
|
|
|
|
struct _ClutterStageEGLClass
|
|
{
|
|
ClutterStageX11Class parent_class;
|
|
};
|
|
|
|
GType _clutter_stage_egl_get_type (void) G_GNUC_CONST;
|
|
|
|
void _clutter_stage_egl_redraw (ClutterStageEGL *stage_egl,
|
|
ClutterStage *stage);
|
|
|
|
#endif /* __CLUTTER_STAGE_EGL_H__ */
|