1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-06 23:29:01 +00:00
erc-c/include/vm_bitfont.h
Peter Evans c7b830bb4a Switch references from SDL_Rect to vm_area
We still use SDL_Rect internally, but we want to abstract the use of it
in our API. The only thing the rest of the app should care about is the
vm_area struct.
2017-12-27 16:31:02 -06:00

24 lines
484 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 int vm_bitfont_render(vm_bitfont *, vm_screen *, vm_area *, char);
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 *);
#endif