1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mfxt-lib-vn

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
textutil.hpp 1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
魔凤啸天 Отправлено 02.10.2021 06:19 12d2751
#pragma once
#include<SDL2/SDL_ttf.h>
#include<initializer_list>
#include<vector>
typedef struct TextMod{
const char* text;
SDL_Color color;
unsigned int style;
unsigned int hint;
bool new_line;
double scale;
}TextMod;
TextMod makeText(const char* text,
SDL_Color color={0,0,0,255},
unsigned int style=TTF_STYLE_NORMAL,
unsigned int hint=TTF_HINTING_NORMAL,
bool new_line=false,
double scale=1.
);
SDL_Texture* BuildText(const std::initializer_list<TextMod>* mods,TTF_Font* font);
SDL_Texture* BuildText(const std::vector<TextMod>& mods,TTF_Font* font);
SDL_Texture* BuildText(std::initializer_list<TextMod> mods,TTF_Font* font);
SDL_Texture* BuildText(const std::initializer_list<TextMod>* mods,TTF_Font* font,
std::vector<std::pair<int,int>>& recv);
SDL_Texture* BuildText(std::initializer_list<TextMod> mods,TTF_Font* font,
std::vector<std::pair<int,int>>& recv);
SDL_Texture* BuildText(const std::vector<TextMod>& mods,TTF_Font* font,
std::vector<std::pair<int,int>>& recv);

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mfxt-lib-vn.git
git@api.gitlife.ru:oschina-mirror/mfxt-lib-vn.git
oschina-mirror
mfxt-lib-vn
mfxt-lib-vn
master