This commit is contained in:
2024-10-23 18:29:52 +02:00
parent 95478134dd
commit 6e2f80d8ce
26 changed files with 232 additions and 290 deletions

View File

@@ -47,6 +47,13 @@ extern Overrides overrides;
struct Circle
{
int x, y, r;
// Constructor por defecto
Circle() : x(0), y(0), r(0) {}
// Constructor
Circle(int xCoord, int yCoord, int radius)
: x(xCoord), y(yCoord), r(radius) {}
};
// Estructura para definir un color
@@ -319,6 +326,9 @@ bool saveDemoFile(const std::string &file_path, const DemoData &dd);
// Obtiene el nombre de un fichero a partir de una ruta
std::string getFileName(const std::string &path);
// Obtiene la ruta eliminando el nombre del fichero
std::string getPath(const std::string &full_path);
// Colores
extern const Color bg_color;
extern const Color no_color;