Optimizado el renderizado de notificaciones

This commit is contained in:
2022-11-18 19:26:31 +01:00
parent 74d5bbddaa
commit ea994bcc2f
6 changed files with 42 additions and 40 deletions

View File

@@ -57,6 +57,13 @@ struct color_t
Uint8 b;
};
// Tipos de paleta
enum palette_e
{
p_zxspectrum,
p_zxarne
};
// Estructura para saber la seccion y subseccion del programa
struct section_t
{
@@ -151,7 +158,7 @@ bool checkCollision(SDL_Point &p, d_line_t &l);
void normalizeLine(d_line_t &l);
// Devuelve un color_t a partir de un string
color_t stringToColor(std::string str);
color_t stringToColor(palette_e pal, std::string str);
// Convierte una cadena en un valor booleano
bool stringToBool(std::string str);