Big refactor, shuffling a lot of files around

This commit is contained in:
2025-11-01 19:51:19 -04:00
parent 99b7d9f49d
commit 62cd94ca78
125 changed files with 4073 additions and 3011 deletions

32
src/render.h Normal file
View File

@@ -0,0 +1,32 @@
#pragma once
#include "texture.h"
namespace anm2ed::render
{
#define RENDER_LIST \
X(PNGS, "PNGs") \
X(GIF, "GIF") \
X(WEBM, "WebM") \
X(MP4, "MP4")
enum Type
{
#define X(symbol, string) symbol,
RENDER_LIST
#undef X
COUNT
};
constexpr const char* STRINGS[] = {
#define X(symbol, string) string,
RENDER_LIST
#undef X
};
}
namespace anm2ed
{
bool animation_render(const std::string&, const std::string&, std::vector<resource::Texture>&, render::Type,
glm::ivec2, int);
}