- [WIP] Comence amb el propertygrid

- [NEW] Módul aux
- [WIP] Módul tilemap ja mostra el mapa
- [FIX] japi/draw: les textures han de vores en NEAREST
This commit is contained in:
2025-11-18 17:12:53 +01:00
parent d686673b8e
commit 03baa43543
8 changed files with 183 additions and 1 deletions

11
source/aux.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "aux.h"
namespace aux
{
std::string colors[17] = { "black", "bright_black", "blue", "bright_blue", "red", "bright_red", "magenta", "bright_magenta", "green", "bright_green", "cyan", "bright_cyan", "yellow", "bright_yellow", "white", "bright_white", "transparent" };
int getColorByName(std::string color)
{
for (int i=0; i<17; ++i) if (colors[i] == color) return i;
return 0;
}
}