2017-12-20 03:50:50 +00:00
|
|
|
#ifndef _VM_BITFONT_H_
|
|
|
|
#define _VM_BITFONT_H_
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
|
|
|
#include "log.h"
|
2018-01-04 03:50:30 +00:00
|
|
|
#include "vm_bits.h"
|
2017-12-20 03:50:50 +00:00
|
|
|
#include "vm_screen.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
SDL_Texture *texture;
|
|
|
|
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
|
|
|
|
char cmask;
|
|
|
|
} vm_bitfont;
|
|
|
|
|
2017-12-27 22:31:02 +00:00
|
|
|
extern int vm_bitfont_render(vm_bitfont *, vm_screen *, vm_area *, char);
|
2018-01-04 03:50:30 +00:00
|
|
|
extern vm_bitfont *vm_bitfont_create(vm_screen *, const vm_8bit *, int, int, int, char);
|
2017-12-20 03:50:50 +00:00
|
|
|
extern void vm_bitfont_free(vm_bitfont *);
|
2017-12-27 22:47:26 +00:00
|
|
|
extern void vm_bitfont_offset(vm_bitfont *, char, vm_area *);
|
2017-12-20 03:50:50 +00:00
|
|
|
|
|
|
|
#endif
|