shithub: m8c

ref: 259f93c5a1e32de283d3e390fb27d94ad49f2650
dir: /SDL2_inprint.h/

View raw version
#ifndef SDL2_inprint_h
#define SDL2_inprint_h

#include <SDL2/SDL.h>

extern void prepare_inline_font(void);
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 */