mirror of
https://github.com/brl/mutter.git
synced 2024-12-29 14:22:13 +00:00
76981c44a4
* clutter/Makefile.am: * clutter/clutter-stage.c: * clutter/sdl/Makefile.am: * clutter/sdl/clutter-backend-sdl.c: * clutter/sdl/clutter-backend-sdl.h: * clutter/sdl/clutter-event-sdl.c: * clutter/sdl/clutter-sdl.h: * clutter/sdl/clutter-stage-sdl.c: * clutter/sdl/clutter-stage-sdl.h: * configure.ac: Add a basic SDL based backend. Lacks real input event handling (translation) as yet. Also allows for clutter to be built against dgles.
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
#ifndef __CLUTTER_STAGE_SDL_H__
|
|
#define __CLUTTER_STAGE_SDL_H__
|
|
|
|
#include <glib-object.h>
|
|
#include <clutter/clutter-stage.h>
|
|
|
|
#define CLUTTER_TYPE_STAGE_SDL (clutter_stage_sdl_get_type ())
|
|
#define CLUTTER_STAGE_SDL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_SDL, ClutterStageSDL))
|
|
#define CLUTTER_IS_STAGE_SDL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_SDL))
|
|
#define CLUTTER_STAGE_SDL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_SDL, ClutterStageSDLClass))
|
|
#define CLUTTER_IS_STAGE_SDL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE_SDL))
|
|
#define CLUTTER_STAGE_SDL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE_SDL, ClutterStageSDLClass))
|
|
|
|
typedef struct _ClutterStageSDL ClutterStageSDL;
|
|
typedef struct _ClutterStageSDLClass ClutterStageSDLClass;
|
|
|
|
struct _ClutterStageSDL
|
|
{
|
|
ClutterStage parent_instance;
|
|
|
|
gint win_width;
|
|
gint win_height;
|
|
};
|
|
|
|
struct _ClutterStageSDLClass
|
|
{
|
|
ClutterStageClass parent_class;
|
|
};
|
|
|
|
GType clutter_stage_sdl_get_type (void) G_GNUC_CONST;
|
|
|
|
#endif /* __CLUTTER_STAGE_SDL_H__ */
|