mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
051a76c155
* clutter/Makefile.am: * clutter/eglnative/Makefile.am: * clutter/eglnative/clutter-backend-egl.c: * clutter/eglnative/clutter-backend-egl.h: * clutter/eglnative/clutter-egl.h: * clutter/eglnative/clutter-event-egl.c: * clutter/eglnative/clutter-stage-egl.c: * clutter/eglnative/clutter-stage-egl.h: * clutter/eglx/Makefile.am: * clutter/eglx/clutter-backend-egl.c: * clutter/eglx/clutter-egl.h: * clutter/eglx/clutter-event-egl.c: * clutter/eglx/clutter-stage-egl.c: * configure.ac: Add a new 'native' EGL backend for non X based EGL's (i.e on framebuffer). Rename old backend to 'eglx' and namespace public funcs with this. * clutter/pango/pangoclutter-private.h: Add extra checks for expected defines.
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
#ifndef __CLUTTER_STAGE_EGL_H__
|
|
#define __CLUTTER_STAGE_EGL_H__
|
|
|
|
#include <glib-object.h>
|
|
#include <clutter/clutter-stage.h>
|
|
#include <GLES/gl.h>
|
|
#include <GLES/egl.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
|
|
{
|
|
ClutterStage parent_instance;
|
|
|
|
/* from the backend */
|
|
gint surface_width;
|
|
gint surface_height;
|
|
|
|
EGLSurface egl_surface;
|
|
EGLContext egl_context;
|
|
};
|
|
|
|
struct _ClutterStageEGLClass
|
|
{
|
|
ClutterStageClass parent_class;
|
|
};
|
|
|
|
GType clutter_stage_egl_get_type (void) G_GNUC_CONST;
|
|
|
|
#endif /* __CLUTTER_STAGE_EGL_H__ */
|