~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to clutter/eglnative/clutter-backend-egl.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Clutter.
2
2
 * An OpenGL based 'interactive canvas' library.
 
3
 *
3
4
 * Authored By Matthew Allum  <mallum@openedhand.com>
4
 
 * Copyright (C) 2006-2007 OpenedHand
 
5
 *
 
6
 * Copyright (C) 2006, 2007, 2008 OpenedHand
 
7
 * Copyright (C) 2009, 2010 Intel Corp
5
8
 *
6
9
 * This library is free software; you can redistribute it and/or
7
10
 * modify it under the terms of the GNU Lesser General Public
14
17
 * Lesser General Public License for more details.
15
18
 *
16
19
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the
18
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
 * Boston, MA 02111-1307, USA.
 
20
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
21
 *
 
22
 *
20
23
 */
21
24
 
22
25
#ifndef __CLUTTER_BACKEND_EGL_H__
38
41
typedef struct _ClutterBackendEGL       ClutterBackendEGL;
39
42
typedef struct _ClutterBackendEGLClass  ClutterBackendEGLClass;
40
43
 
41
 
 
42
44
struct _ClutterBackendEGL
43
45
{
44
46
  ClutterBackend parent_instance;
48
50
  EGLSurface egl_surface;
49
51
  EGLContext egl_context;
50
52
 
51
 
  gint       egl_version_major;
52
 
  gint       egl_version_minor;
 
53
  /* from the backend */
 
54
  gint surface_width;
 
55
  gint surface_height;
 
56
 
 
57
  gint egl_version_major;
 
58
  gint egl_version_minor;
53
59
 
54
60
  /* main stage singleton */
55
 
  ClutterActor *stage;
 
61
  ClutterStageWindow *stage;
56
62
 
57
63
  /* event source */
58
64
  GSource *event_source;
60
66
  /* event timer */
61
67
  GTimer *event_timer;
62
68
 
 
69
  /* FB device */
 
70
  gint fb_device_id;
 
71
 
63
72
  /*< private >*/
64
73
};
65
74
 
70
79
 
71
80
GType clutter_backend_egl_get_type (void) G_GNUC_CONST;
72
81
 
73
 
void _clutter_events_init (ClutterBackend *backend);
74
 
void _clutter_events_uninit (ClutterBackend *backend);
 
82
void _clutter_events_egl_init   (ClutterBackendEGL *backend);
 
83
void _clutter_events_egl_uninit (ClutterBackendEGL *backend);
75
84
 
76
85
G_END_DECLS
77
86