Acabat de renamar, encara que he descobert cosetes i tindré que fer altra pasaeta

Actualitzat stb_image.h a la última versió
This commit is contained in:
2024-10-12 22:25:43 +02:00
parent cce14dba4d
commit 33ea8d90ca
16 changed files with 528 additions and 431 deletions

View File

@@ -35,6 +35,10 @@ AnimatedFile loadAnimationFromFile(std::shared_ptr<Texture> texture, std::string
buffer.counter = 0;
buffer.current_frame = 0;
buffer.completed = false;
buffer.name = "";
buffer.speed = 5;
buffer.loop = 0;
buffer.frames.clear();
do
{
@@ -44,7 +48,7 @@ AnimatedFile loadAnimationFromFile(std::shared_ptr<Texture> texture, std::string
int pos = line.find("=");
// Procesa las dos subcadenas
if (pos != (int)line.npos)
if (pos != static_cast<int>(line.npos))
{
if (line.substr(0, pos) == "name")
{
@@ -366,6 +370,10 @@ bool AnimatedSprite::loadFromVector(std::vector<std::string> *source)
buffer.counter = 0;
buffer.current_frame = 0;
buffer.completed = false;
buffer.name = "";
buffer.speed = 5;
buffer.loop = 0;
buffer.frames.clear();
do
{
@@ -377,7 +385,7 @@ bool AnimatedSprite::loadFromVector(std::vector<std::string> *source)
int pos = line.find("=");
// Procesa las dos subcadenas
if (pos != (int)line.npos)
if (pos != static_cast<int>(line.npos))
{
if (line.substr(0, pos) == "name")
{