3 #include "ge211_forward.h" 4 #include "ge211_util.h" 5 #include "ge211_error.h" 14 std::vector<const char*> get_search_prefixes();
19 explicit File_resource(
const std::string&);
21 SDL_RWops* get_raw() const noexcept {
return ptr_.get(); }
22 SDL_RWops* release() && {
return ptr_.release(); }
25 static delete_ptr<SDL_RWops> open_rwops_(
const std::string&);
27 delete_ptr<SDL_RWops> ptr_;
53 Font(
const std::string& filename,
int size);
58 TTF_Font* get_raw_()
const noexcept {
return ptr_.get(); }
60 static detail::delete_ptr<TTF_Font>
61 load_(
const std::string& filename,
62 detail::File_resource&& ttf_file,
65 detail::delete_ptr<TTF_Font> ptr_;
The game engine namespace.
Font(const std::string &filename, int size)
Loads a font from the specified TrueType font file, at the specified size.
Represents a font that can be used to render a sprites::Text_sprite.
A Sprite that displays text.