Afegida nova tipografia 04b_25
Eliminades tipografies que no s'utilitzaven La classe Text ara pot tornar una textura amb el text
This commit is contained in:
@@ -60,6 +60,9 @@ Texture::~Texture()
|
||||
// Carga una imagen desde un fichero
|
||||
bool Texture::loadFromFile(const std::string &file_path)
|
||||
{
|
||||
if (file_path.empty())
|
||||
return false;
|
||||
|
||||
int req_format = STBI_rgb_alpha;
|
||||
int width, height, orig_format;
|
||||
unsigned char *data = stbi_load(file_path.c_str(), &width, &height, &orig_format, req_format);
|
||||
|
||||
Reference in New Issue
Block a user