You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
528 B
24 lines
528 B
#pragma once |
|
|
|
#include "devilution.h" |
|
|
|
namespace dvl { |
|
|
|
struct TtfSurfaceCache { |
|
~TtfSurfaceCache() |
|
{ |
|
mem_free_dbg(text); |
|
mem_free_dbg(shadow); |
|
} |
|
|
|
SDL_Surface *text = nullptr; |
|
SDL_Surface *shadow = nullptr; |
|
}; |
|
|
|
void DrawTTF(const char *text, const SDL_Rect &rect, int flags, |
|
const SDL_Color &text_color, const SDL_Color &shadow_color, |
|
TtfSurfaceCache **surface_cache); |
|
|
|
void DrawArtStr(const char *text, const SDL_Rect &rect, int flags, bool drawTextCursor = false); |
|
|
|
} // namespace dvl
|
|
|