4
* An OpenGL based 'interactive canvas' library.
6
* Authored By Neil Roberts <neil@linux.intel.com>
8
* Copyright (C) 2009 Intel Corporation.
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.
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.
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/>.
24
#ifndef __COGL_PANGO_DISPLAY_LIST_H__
25
#define __COGL_PANGO_DISPLAY_LIST_H__
28
#include <cogl/cogl.h>
32
typedef struct _CoglPangoDisplayList CoglPangoDisplayList;
34
CoglPangoDisplayList *_cogl_pango_display_list_new (void);
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);
40
void _cogl_pango_display_list_add_texture (CoglPangoDisplayList *dl,
44
float tx_1, float ty_1,
45
float tx_2, float ty_2);
47
void _cogl_pango_display_list_add_rectangle (CoglPangoDisplayList *dl,
49
float x_2, float y_2);
51
void _cogl_pango_display_list_add_trapezoid (CoglPangoDisplayList *dl,
59
void _cogl_pango_display_list_render (CoglPangoDisplayList *dl,
60
const CoglColor *color,
61
CoglHandle glyph_material,
62
CoglHandle solid_material);
64
void _cogl_pango_display_list_clear (CoglPangoDisplayList *dl);
66
void _cogl_pango_display_list_free (CoglPangoDisplayList *dl);
70
#endif /* __COGL_PANGO_DISPLAY_LIST_H__ */