"Initial commit to Gerrit"
[profile/ivi/cogl.git] / cogl-pango / cogl-pango-pipeline-cache.h
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
5  *
6  * Copyright (C) 2011 Intel Corporation.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library. If not, see
20  * <http://www.gnu.org/licenses/>.
21  *
22  *
23  *
24  * Authors:
25  *   Neil Roberts <neil@linux.intel.com>
26  */
27
28 #ifndef __COGL_PANGO_PIPELINE_CACHE_H__
29 #define __COGL_PANGO_PIPELINE_CACHE_H__
30
31 #include <glib.h>
32 #include <cogl/cogl.h>
33
34 G_BEGIN_DECLS
35
36 typedef struct _CoglPangoPipelineCache CoglPangoPipelineCache;
37
38 CoglPangoPipelineCache *
39 _cogl_pango_pipeline_cache_new (gboolean use_mipmapping);
40
41 /* Returns a pipeline that can be used to render glyphs in the given
42    texture. The pipeline has a new reference so it is up to the caller
43    to unref it */
44 CoglPipeline *
45 _cogl_pango_pipeline_cache_get (CoglPangoPipelineCache *cache,
46                                 CoglHandle texture);
47
48 void
49 _cogl_pango_pipeline_cache_free (CoglPangoPipelineCache *cache);
50
51 G_END_DECLS
52
53 #endif /* __COGL_PANGO_PIPELINE_CACHE_H__ */