File: font.h

package info (click to toggle)
tuxpuck 0.8.2-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 880 kB
  • ctags: 460
  • sloc: ansic: 3,319; makefile: 108
file content (23 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* font.h - Copyright (C) 2001-2002 Jacob Kroon, see COPYING for details */

#ifndef _FONT_H
#define _FONT_H

/* includes */
#include <SDL_video.h>

/* structs */
typedef struct _Font Font;

/* functions */
Font *font_create(Uint8 *, Uint32 *);
void font_free(Font *);
void font_print(Font *, char *, SDL_Rect *);
Uint32 font_calc_width(Font *, char *);
Uint32 font_calc_height(Font *, char *);
void font_move_pen(Font *, Uint16, Uint16);
void font_set_pen(Font *, Uint16, Uint16);
void font_set_color(Font *, Uint8, Uint8, Uint8);
void font_set_alpha(Font *, Uint8);

#endif /* _FONT_H */