ANESE/thirdparty/SDL_inprint/original/SDL2_inprint.h
Daniel Prilik 871daf6aa1 tweaked callbacks + refactored SDL_inprint
I wanted to use SDL_inprint in multiple renderers, and that meant I
had to modify the library a little bit.

also, I just noticed that the smearing issue is back! Not as bad as
before, but MMC3 games seems to be affected when the screen scrolls
upwards...

wierd.
2018-07-12 11:28:54 -07:00

23 lines
499 B
C++
Executable file

#ifndef SDL2_inprint_h
#define SDL2_inprint_h
#include <SDL.h>
namespace SDL2_inprint {
extern "C" {
void prepare_inline_font(void);
void kill_inline_font(void);
void inrenderer(SDL_Renderer *renderer);
void infont(SDL_Texture *font);
void incolor1(SDL_Color *color);
void incolor(Uint32 color, Uint32 unused); /* Color must be in 0x00RRGGBB format ! */
void inprint(SDL_Renderer *dst, const char *str, Uint32 x, Uint32 y);
SDL_Texture *get_inline_font(void);
}
}
#endif /* SDL2_inprint_h */