|
- #ifndef NESE_SDL_OVERLAY_
- #define NESE_SDL_OVERLAY_
-
- #include <stdint.h>
-
- #include <SDL.h>
-
- #include "overlay.h"
-
-
- typedef struct {
- const char* chars;
- const uint8_t* charbits;
- int char_count;
- SDL_Texture** textures;
- } sdl_overlay_font;
-
-
- int sdl_overlay_font_init(SDL_Renderer*, sdl_overlay_font*);
-
- void sdl_overlay_font_done(sdl_overlay_font*);
-
- int sdl_overlay_frame(Overlay*, sdl_overlay_font*, SDL_Renderer*,
- int vx, int vy, int sx, int sy);
-
-
- void measure_string(sdl_overlay_font* font, const char* string,
- int* w, int* h);
-
- void render_string(SDL_Renderer* rend, int ox, int oy,
- int vx, int vy, int sx, int sy,
- sdl_overlay_font* font, const char* string,
- uint32_t color);
-
-
- #endif // NESE_SDL_OVERLAY_
|