staging some future refactoring, .h -> hpp, fix for rendering w/ audio

This commit is contained in:
2026-03-09 23:08:57 -04:00
parent 77f6e65b15
commit 2d27b7e8fb
76 changed files with 0 additions and 0 deletions

41
src/render.hpp Normal file
View File

@@ -0,0 +1,41 @@
#pragma once
#include "audio_stream.h"
#include "texture.h"
namespace anm2ed::render
{
#define RENDER_LIST \
X(PNGS, "PNGs", "") \
X(SPRITESHEET, "Spritesheet (PNG)", ".png") \
X(GIF, "GIF", ".gif") \
X(WEBM, "WebM", ".webm") \
X(MP4, "MP4", ".mp4")
enum Type
{
#define X(symbol, string, extension) symbol,
RENDER_LIST
#undef X
COUNT
};
constexpr const char* STRINGS[] = {
#define X(symbol, string, extension) string,
RENDER_LIST
#undef X
};
constexpr const char* EXTENSIONS[] = {
#define X(symbol, string, extension) extension,
RENDER_LIST
#undef X
};
}
namespace anm2ed
{
std::filesystem::path ffmpeg_log_path();
bool animation_render(const std::filesystem::path&, const std::filesystem::path&,
const std::vector<std::filesystem::path>&, AudioStream&, render::Type, int);
}