xine-lib: xine-lib-1.2.12/src/post/goom/gfontlib.c File Reference

xine-lib 1.2.12

Data Structures | Functions
gfontlib.c File Reference
`#include "goom_config.h"`
`#include "gfontrle.c"`
`#include "gfontlib.h"`
`#include <string.h>`
`#include <stdlib.h>`

## Data Structures
struct | goomfont_s

## Functions
void | gfont_unload (goomfont_t **pp)
goomfont_t * | gfont_load (void)
void | goom_draw_text (goomfont_t *p, Pixel *buf, int resolx, int resoly, int x, int y, const char *str, float charspace, int center)

## Function Documentation

## ◆ gfont_load()

goomfont_t * gfont_load | ( | void |  | ) |

References ALPHA, BLEU, goomfont_s::font_chars, goomfont_s::font_height, goomfont_s::font_width, NULL, ROUGE, goomfont_s::small_font_chars, goomfont_s::small_font_height, goomfont_s::small_font_width, the_font, _PIXEL::val, and VERT.

Referenced by goom_init().

## ◆ gfont_unload()

void gfont_unload | ( | goomfont_t ** | pp | ) |

References goomfont_s::font_chars, goomfont_s::font_height, goomfont_s::font_width, NULL, goomfont_s::small_font_chars, goomfont_s::small_font_height, and goomfont_s::small_font_width.

Referenced by goom_close().

## ◆ goom_draw_text()

void goom_draw_text | ( | goomfont_t * | p,
|  | Pixel * | buf,
|  | int | resolx,
|  | int | resoly,
|  | int | x,
|  | int | y,
|  | const char * | str,
|  | float | charspace,
|  | int | center
| ) |  |

References _PIXEL::a, A_CHANNEL, _PIXEL::b, _PIXEL::channels, goomfont_s::font_chars, goomfont_s::font_height, goomfont_s::font_width, _PIXEL::g, NULL, _PIXEL::r, goomfont_s::small_font_chars, goomfont_s::small_font_height, goomfont_s::small_font_width, and _PIXEL::val.

Referenced by goom_update(), and update_message().