mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
6409b1adeb
svn merge \ https://svn.o-hand.com/repos/clutter/trunk/clutter@2509 \ https://svn.o-hand.com/repos/clutter/branches/clutter-ivan@HEAD
49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
#ifndef __CLUTTER_STAGE_EGL_H__
|
|
#define __CLUTTER_STAGE_EGL_H__
|
|
|
|
#include <glib-object.h>
|
|
#include <clutter/clutter-stage.h>
|
|
|
|
#if HAVE_CLUTTER_FRUITY
|
|
/* extra include needed for the GLES header for arm-apple-darwin */
|
|
#include <CoreSurface/CoreSurface.h>
|
|
#endif
|
|
|
|
#include <GLES/gl.h>
|
|
#include <GLES/egl.h>
|
|
#include "clutter-backend-fruity.h"
|
|
|
|
#define CLUTTER_TYPE_STAGE_FRUITY (clutter_stage_egl_get_type ())
|
|
#define CLUTTER_STAGE_EGL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_FRUITY, ClutterStageEGL))
|
|
#define CLUTTER_IS_STAGE_EGL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_FRUITY))
|
|
#define CLUTTER_STAGE_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_FRUITY, ClutterStageEGLClass))
|
|
#define CLUTTER_IS_STAGE_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_FRUITY))
|
|
#define CLUTTER_STAGE_EGL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_FRUITY, ClutterStageEGLClass))
|
|
|
|
typedef struct _ClutterStageEGL ClutterStageEGL;
|
|
typedef struct _ClutterStageEGLClass ClutterStageEGLClass;
|
|
|
|
struct _ClutterStageEGL
|
|
{
|
|
ClutterActor parent_instance;
|
|
|
|
/* from the backend */
|
|
gint surface_width;
|
|
gint surface_height;
|
|
|
|
EGLSurface egl_surface;
|
|
|
|
/* the stage wrapper */
|
|
ClutterStage *wrapper;
|
|
ClutterBackendEGL *backend;
|
|
};
|
|
|
|
struct _ClutterStageEGLClass
|
|
{
|
|
ClutterActorClass parent_class;
|
|
};
|
|
|
|
GType clutter_stage_egl_get_type (void) G_GNUC_CONST;
|
|
|
|
#endif /* __CLUTTER_STAGE_EGL_H__ */
|