shithub: m8c

ref: 522c173084a23013912cf518c9fdafa18748632e
dir: /src/SDL2_inprint.h/

View raw version
// Based on bitmap font routine by driedfruit, https://github.com/driedfruit/SDL_inprint
// Released into public domain.

#ifndef SDL2_inprint_h
#define SDL2_inprint_h

#include "inline_font.h"
#include <SDL.h>

extern void prepare_inline_font(struct inline_font *font);
extern void kill_inline_font(void);

extern void inrenderer(SDL_Renderer *renderer);
extern void infont(SDL_Texture *font);
extern void incolor1(SDL_Color *color);
extern void incolor(Uint32 color, Uint32 unused); /* Color must be in 0x00RRGGBB format ! */
extern void inprint(SDL_Renderer *dst, const char *str, Uint32 x, Uint32 y, Uint32 fgcolor,
                    Uint32 bgcolor);

extern SDL_Texture *get_inline_font(void);

#endif /* SDL2_inprint_h */