fontconv.c File Reference
Allegro FONT conversion routines. More...
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <allegro.h>
#include <allegro/internal/aintern.h>
#include "alleggl.h"
#include "allglint.h"
#include <GL/glu.h>
Go to the source code of this file.
Data Structures
Defines
Functions
-
static int agl_get_font_height (AL_CONST FONT *f)
-
static int agl_char_length (const FONT *f, int ch)
-
static int agl_text_length (const FONT *f, const char *str)
-
static void aglf_convert_allegro_font_to_bitmap (FONT_AGL_DATA *dest, FONT *f, void *src, int *height)
-
static void aglf_convert_allegro_font_to_texture (FONT_AGL_DATA **dest, FONT *f, void *src, int *height, float scale, GLint format)
-
static GLuint aglf_upload_texture (BITMAP *bmp, GLint format, int has_alpha)
-
static int aglf_check_texture (BITMAP *bmp, GLint format, int has_alpha)
-
static BITMAP * look_for_texture (int beg, int end, AGL_GLYPH *glyphs, int max_w, int max_h, int total_area, GLint format, int has_alpha)
-
static int get_format_num_channels (GLenum format)
-
static int iroundf (float v)
-
static float agl_char_length_fractional (const FONT *f, int ch)
-
static int create_textured_font_call_lists (AGL_GLYPH *coords, int max, BITMAP *bmp, float scale, int *height)
- FONT * allegro_gl_convert_allegro_font (FONT *f, int type, float scale)
- Equivalent to:.
- FONT * allegro_gl_convert_allegro_font_ex (FONT *f, int type, float scale, GLint format)
- Converts a regular Allegro FONT to the AGL format for 3D display.
-
static int sort_glyphs (const void *c1, const void *c2)
-
static int unsort_glyphs (const void *c1, const void *c2)
-
static int sort_textures (const void *c1, const void *c2)
-
static int aglf_sort_out_glyphs (BITMAP *bmp, AGL_GLYPH *glyphs, const int beg, const int end)
-
static int split_font (FONT *f, void *source, void **dest1, void **dest2)
-
static void destroy_split_font (FONT *f, union mixed_ptr range1, union mixed_ptr range2)
-
static int do_crop_font_range (FONT *f, AGL_GLYPH *glyphs, int beg, int end)
-
static int crop_font_range (FONT *f, void *src, int beg, int end, AGL_GLYPH *glyphs, int *net_area, int *gross_area, int *max_w, int *max_h)
-
static int draw_glyphs (BITMAP *bmp, FONT *f, GLint format, int beg, int end, AGL_GLYPH *glyphs)
Variables
Detailed Description
Allegro FONT conversion routines.
Notes: - Depends on the Allegro's FONT structure remaining intact. Bugs: - Bitmapped font support is flakey at best.
Definition in file fontconv.c.
Variable Documentation
Generated on Sun Dec 3 18:06:50 2006 for AllegroGL by
1.5.1