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

« back to all changes in this revision

Viewing changes to clutter/pango/cogl-pango-display-list.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
 
/*
2
 
 * Clutter.
3
 
 *
4
 
 * An OpenGL based 'interactive canvas' library.
5
 
 *
6
 
 * Authored By Neil Roberts  <neil@linux.intel.com>
7
 
 *
8
 
 * Copyright (C) 2009  Intel Corporation.
9
 
 *
10
 
 * This library is free software; you can redistribute it and/or
11
 
 * modify it under the terms of the GNU Lesser General Public
12
 
 * License as published by the Free Software Foundation; either
13
 
 * version 2 of the License, or (at your option) any later version.
14
 
 *
15
 
 * This library is distributed in the hope that it will be useful,
16
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
 
 * Lesser General Public License for more details.
19
 
 *
20
 
 * You should have received a copy of the GNU Lesser General Public
21
 
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22
 
 */
23
 
 
24
 
#ifndef __COGL_PANGO_DISPLAY_LIST_H__
25
 
#define __COGL_PANGO_DISPLAY_LIST_H__
26
 
 
27
 
#include <glib.h>
28
 
#include <cogl/cogl.h>
29
 
 
30
 
G_BEGIN_DECLS
31
 
 
32
 
typedef struct _CoglPangoDisplayList CoglPangoDisplayList;
33
 
 
34
 
CoglPangoDisplayList *_cogl_pango_display_list_new (void);
35
 
 
36
 
void _cogl_pango_display_list_set_color_override (CoglPangoDisplayList *dl,
37
 
                                                  const CoglColor *color);
38
 
void _cogl_pango_display_list_remove_color_override (CoglPangoDisplayList *dl);
39
 
 
40
 
void _cogl_pango_display_list_add_texture (CoglPangoDisplayList *dl,
41
 
                                           CoglHandle texture,
42
 
                                           float x_1, float y_1,
43
 
                                           float x_2, float y_2,
44
 
                                           float tx_1, float ty_1,
45
 
                                           float tx_2, float ty_2);
46
 
 
47
 
void _cogl_pango_display_list_add_rectangle (CoglPangoDisplayList *dl,
48
 
                                             float x_1, float y_1,
49
 
                                             float x_2, float y_2);
50
 
 
51
 
void _cogl_pango_display_list_add_trapezoid (CoglPangoDisplayList *dl,
52
 
                                             float y_1,
53
 
                                             float x_11,
54
 
                                             float x_21,
55
 
                                             float y_2,
56
 
                                             float x_12,
57
 
                                             float x_22);
58
 
 
59
 
void _cogl_pango_display_list_render (CoglPangoDisplayList *dl,
60
 
                                      const CoglColor *color,
61
 
                                      CoglHandle glyph_material,
62
 
                                      CoglHandle solid_material);
63
 
 
64
 
void _cogl_pango_display_list_clear (CoglPangoDisplayList *dl);
65
 
 
66
 
void _cogl_pango_display_list_free (CoglPangoDisplayList *dl);
67
 
 
68
 
G_END_DECLS
69
 
 
70
 
#endif /* __COGL_PANGO_DISPLAY_LIST_H__ */