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>
29 #include "cogl-pango-pipeline-cache.h"
33 typedef struct _CoglPangoDisplayList CoglPangoDisplayList;
35 CoglPangoDisplayList *_cogl_pango_display_list_new (CoglPangoPipelineCache *);
37 void _cogl_pango_display_list_set_color_override (CoglPangoDisplayList *dl,
38 const CoglColor *color);
39 void _cogl_pango_display_list_remove_color_override (CoglPangoDisplayList *dl);
41 void _cogl_pango_display_list_add_texture (CoglPangoDisplayList *dl,
45 float tx_1, float ty_1,
46 float tx_2, float ty_2);
48 void _cogl_pango_display_list_add_rectangle (CoglPangoDisplayList *dl,
50 float x_2, float y_2);
52 void _cogl_pango_display_list_add_trapezoid (CoglPangoDisplayList *dl,
60 void _cogl_pango_display_list_render (CoglPangoDisplayList *dl,
61 const CoglColor *color);
63 void _cogl_pango_display_list_clear (CoglPangoDisplayList *dl);
65 void _cogl_pango_display_list_free (CoglPangoDisplayList *dl);
69 #endif /* __COGL_PANGO_DISPLAY_LIST_H__ */