mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-24 14:32:08 +00:00
24 lines
485 B
C
24 lines
485 B
C
#ifndef _VM_BITFONT_H_
|
|
#define _VM_BITFONT_H_
|
|
|
|
#include <SDL.h>
|
|
|
|
#include "log.h"
|
|
#include "vm_screen.h"
|
|
|
|
typedef struct {
|
|
SDL_Texture *texture;
|
|
|
|
int width;
|
|
int height;
|
|
|
|
char cmask;
|
|
} vm_bitfont;
|
|
|
|
extern vm_bitfont *vm_bitfont_create(vm_screen *, const char *, int, int, char);
|
|
extern void vm_bitfont_free(vm_bitfont *);
|
|
extern void vm_bitfont_offset(vm_bitfont *, char, int *, int *);
|
|
extern int vm_bitfont_render(vm_bitfont *, vm_screen *, SDL_Rect *, char);
|
|
|
|
#endif
|