135c4bbdfSmrg/*
235c4bbdfSmrg * Copyright © 2014 Keith Packard
335c4bbdfSmrg *
435c4bbdfSmrg * Permission to use, copy, modify, distribute, and sell this software and its
535c4bbdfSmrg * documentation for any purpose is hereby granted without fee, provided that
635c4bbdfSmrg * the above copyright notice appear in all copies and that both that copyright
735c4bbdfSmrg * notice and this permission notice appear in supporting documentation, and
835c4bbdfSmrg * that the name of the copyright holders not be used in advertising or
935c4bbdfSmrg * publicity pertaining to distribution of the software without specific,
1035c4bbdfSmrg * written prior permission.  The copyright holders make no representations
1135c4bbdfSmrg * about the suitability of this software for any purpose.  It is provided "as
1235c4bbdfSmrg * is" without express or implied warranty.
1335c4bbdfSmrg *
1435c4bbdfSmrg * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1535c4bbdfSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1635c4bbdfSmrg * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1735c4bbdfSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1835c4bbdfSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1935c4bbdfSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
2035c4bbdfSmrg * OF THIS SOFTWARE.
2135c4bbdfSmrg */
2235c4bbdfSmrg
2335c4bbdfSmrg#ifndef _GLAMOR_FONT_H_
2435c4bbdfSmrg#define _GLAMOR_FONT_H_
2535c4bbdfSmrg
2635c4bbdfSmrgtypedef struct {
2735c4bbdfSmrg    Bool        realized;
2835c4bbdfSmrg    CharInfoPtr default_char;
2935c4bbdfSmrg    CARD8       default_row;
3035c4bbdfSmrg    CARD8       default_col;
3135c4bbdfSmrg
3235c4bbdfSmrg    GLuint      texture_id;
3335c4bbdfSmrg    GLuint      row_width;
3435c4bbdfSmrg    CARD16      glyph_width_bytes;
3535c4bbdfSmrg    CARD16      glyph_width_pixels;
3635c4bbdfSmrg    CARD16      glyph_height;
3735c4bbdfSmrg
3835c4bbdfSmrg} glamor_font_t;
3935c4bbdfSmrg
4035c4bbdfSmrgglamor_font_t *
4135c4bbdfSmrgglamor_font_get(ScreenPtr screen, FontPtr font);
4235c4bbdfSmrg
4335c4bbdfSmrgBool
4435c4bbdfSmrgglamor_font_init(ScreenPtr screen);
4535c4bbdfSmrg
4635c4bbdfSmrgvoid
4735c4bbdfSmrgglamor_fini_glyph_shader(ScreenPtr screen);
4835c4bbdfSmrg
4935c4bbdfSmrg#endif /* _GLAMOR_FONT_H_ */
50