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.
Defines
-
#define FONT_CHARACTER_SPACING 2
-
#define MIN_TEXTURE_SIZE 2
-
#define NUM_TEXTURE_SIZE 13
Typedefs
-
typedef glyph glyph
-
typedef texture_size texture_size
Functions
-
int agl_get_font_height (AL_CONST FONT *f)
-
void aglf_convert_allegro_font_to_bitmap (FONT_AGL_DATA *dest, FONT *f, void *src, int *height)
-
void aglf_convert_allegro_font_to_texture (FONT_AGL_DATA *dest, FONT *f, void *src, int *height, float scale, GLint format)
-
GLuint aglf_upload_texture (BITMAP *bmp, GLint format)
-
int aglf_check_texture (BITMAP *bmp, GLint format)
- 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.
-
int sort_glyphs (const void *c1, const void *c2)
-
int unsort_glyphs (const void *c1, const void *c2)
-
int sort_textures (const void *c1, const void *c2)
-
int aglf_sort_out_glyphs (BITMAP *bmp, glyph *glyphs, const int beg, const int end)
-
int split_font (FONT *f, void *source, void **dest1, void **dest2)
-
void destroy_split_font (FONT *f, union mixed_ptr range1, union mixed_ptr range2)
-
int crop_font_range (FONT *f, void *src, int beg, int end, glyph *glyphs, int *net_area, int *gross_area, int *max_w, int *max_h)
-
BITMAP * look_for_texture (int beg, int end, glyph *glyphs, int max_w, int max_h, int total_area, GLint format)
-
int draw_glyphs (BITMAP *bmp, FONT *f, GLint format, int beg, int end, glyph *glyphs)
Variables
- FONT_VTABLE _agl_font_vtable
-
FONT_VTABLE * font_vtable_agl = &_agl_font_vtable
Detailed Description
Allegro FONT conversion routines.
Notes: - Depends on the Allegro's FONT structure remaining intact. Bugs: - Bitmapped font support is flakey at best.
- Allegro text routines aren't fully implemented yet.
Definition in file fontconv.c.
Variable Documentation
FONT_VTABLE _agl_font_vtable
|
|
Generated on Wed Jun 30 23:59:52 2004 for AllegroGL by
1.3.5