mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
911b395c8a
Bug 1209 - Move fixed point API in COGL * clutter/cogl/cogl-fixed.h: * clutter/cogl/cogl.h.in: * clutter/cogl/common/Makefile.am: * clutter/cogl/common/cogl-fixed.c: Add fixed point API, modelled after the ClutterFixed. The CoglFixed API supercedes the ClutterFixed one and avoids the dependency of COGL on Clutter's own API. * clutter/cogl/common/cogl-clip-stack.c: * clutter/cogl/common/cogl-primitives.c: * clutter/cogl/common/cogl-primitives.h: Update internal usage of ClutterFixed to CoglFixed. * clutter/cogl/gl/Makefile.am: * clutter/cogl/gl/cogl-primitives.c: * clutter/cogl/gl/cogl-texture.c: * clutter/cogl/gl/cogl.c: Ditto, in the GL implementation of the COGL API. * clutter/cogl/gles/Makefile.am: * clutter/cogl/gles/cogl-fbo.c: * clutter/cogl/gles/cogl-gles2-wrapper.c: * clutter/cogl/gles/cogl-primitives.c: * clutter/cogl/gles/cogl-texture.c: * clutter/cogl/gles/cogl.c: Ditto, in the GLES implementation of the COGL API. * clutter/pango/pangoclutter-glyph-cache.c: * clutter/pango/pangoclutter-glyph-cache.h: Ditto, in the Pango renderer glyphs cache. * clutter/clutter-fixed.c: * clutter/clutter-fixed.h: ClutterFixed and related API becomes a simple transition API for bindings and public Clutter API. * clutter/clutter-actor.c: * clutter/clutter-alpha.c: * clutter/clutter-backend.c: * clutter/clutter-behaviour-depth.c: * clutter/clutter-behaviour-ellipse.c: * clutter/clutter-behaviour-path.c: * clutter/clutter-behaviour-rotate.c: * clutter/clutter-behaviour-scale.c: * clutter/clutter-clone-texture.c: * clutter/clutter-color.c: * clutter/clutter-entry.c: * clutter/clutter-stage.c: * clutter/clutter-texture.c: * clutter/clutter-timeline.c: * clutter/clutter-units.h: Move from the internal usage of ClutterFixed to CoglFixed. * doc/reference/clutter/clutter-sections.txt: * doc/reference/cogl/cogl-docs.sgml: * doc/reference/cogl/cogl-sections.txt: Update the documentation. * tests/test-cogl-tex-tile.c: * tests/test-project.c: Fix tests after the API change * README: Add release notes.
70 lines
2.2 KiB
C
70 lines
2.2 KiB
C
/*
|
|
* Clutter.
|
|
*
|
|
* An OpenGL based 'interactive canvas' library.
|
|
*
|
|
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
*
|
|
* Copyright (C) 2008 OpenedHand
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef _HAVE_PANGO_CLUTTER_GLYPH_CACHE_H
|
|
#define _HAVE_PANGO_CLUTTER_GLYPH_CACHE_H
|
|
|
|
#include <glib.h>
|
|
#include <cogl/cogl.h>
|
|
#include <pango/pango-font.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _PangoClutterGlyphCache PangoClutterGlyphCache;
|
|
typedef struct _PangoClutterGlyphCacheValue PangoClutterGlyphCacheValue;
|
|
|
|
struct _PangoClutterGlyphCacheValue
|
|
{
|
|
CoglHandle texture;
|
|
CoglFixed tx1, ty1, tx2, ty2;
|
|
int draw_x, draw_y, draw_width, draw_height;
|
|
};
|
|
|
|
PangoClutterGlyphCache *pango_clutter_glyph_cache_new (gboolean use_mipmapping);
|
|
|
|
void pango_clutter_glyph_cache_free (PangoClutterGlyphCache *cache);
|
|
|
|
PangoClutterGlyphCacheValue *
|
|
pango_clutter_glyph_cache_lookup (PangoClutterGlyphCache *cache,
|
|
PangoFont *font,
|
|
PangoGlyph glyph);
|
|
|
|
PangoClutterGlyphCacheValue *
|
|
pango_clutter_glyph_cache_set (PangoClutterGlyphCache *cache,
|
|
PangoFont *font,
|
|
PangoGlyph glyph,
|
|
gconstpointer pixels,
|
|
int width,
|
|
int height,
|
|
int stride,
|
|
int draw_x,
|
|
int draw_y);
|
|
|
|
void pango_clutter_glyph_cache_clear (PangoClutterGlyphCache *cache);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* _HAVE_PANGO_CLUTTER_GLYPH_CACHE_H */
|