|
|
74c3cbe |
/*
|
|
|
74c3cbe |
* Copyright © 2014 Keith Packard
|
|
|
74c3cbe |
*
|
|
|
74c3cbe |
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
74c3cbe |
* documentation for any purpose is hereby granted without fee, provided that
|
|
|
74c3cbe |
* the above copyright notice appear in all copies and that both that copyright
|
|
|
74c3cbe |
* notice and this permission notice appear in supporting documentation, and
|
|
|
74c3cbe |
* that the name of the copyright holders not be used in advertising or
|
|
|
74c3cbe |
* publicity pertaining to distribution of the software without specific,
|
|
|
74c3cbe |
* written prior permission. The copyright holders make no representations
|
|
|
74c3cbe |
* about the suitability of this software for any purpose. It is provided "as
|
|
|
74c3cbe |
* is" without express or implied warranty.
|
|
|
74c3cbe |
*
|
|
|
74c3cbe |
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
|
74c3cbe |
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
|
|
74c3cbe |
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
|
74c3cbe |
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
74c3cbe |
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
74c3cbe |
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
|
74c3cbe |
* OF THIS SOFTWARE.
|
|
|
74c3cbe |
*/
|
|
|
74c3cbe |
|
|
|
74c3cbe |
#ifndef _GLAMOR_FONT_H_
|
|
|
74c3cbe |
#define _GLAMOR_FONT_H_
|
|
|
74c3cbe |
|
|
|
74c3cbe |
typedef struct {
|
|
|
74c3cbe |
Bool realized;
|
|
|
74c3cbe |
CharInfoPtr default_char;
|
|
|
74c3cbe |
CARD8 default_row;
|
|
|
74c3cbe |
CARD8 default_col;
|
|
|
74c3cbe |
|
|
|
74c3cbe |
GLuint texture_id;
|
|
|
74c3cbe |
|
|
|
74c3cbe |
CARD16 glyph_width_bytes;
|
|
|
74c3cbe |
CARD16 glyph_width_pixels;
|
|
|
74c3cbe |
CARD16 glyph_height;
|
|
|
74c3cbe |
|
|
|
74c3cbe |
} glamor_font_t;
|
|
|
74c3cbe |
|
|
|
74c3cbe |
glamor_font_t *
|
|
|
74c3cbe |
glamor_font_get(ScreenPtr screen, FontPtr font);
|
|
|
74c3cbe |
|
|
|
74c3cbe |
Bool
|
|
|
74c3cbe |
glamor_font_init(ScreenPtr screen);
|
|
|
74c3cbe |
|
|
|
74c3cbe |
void
|
|
|
74c3cbe |
glamor_fini_glyph_shader(ScreenPtr screen);
|
|
|
74c3cbe |
|
|
|
74c3cbe |
#endif /* _GLAMOR_FONT_H_ */
|