39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "audio_stream.h"
|
|
#include "texture.h"
|
|
|
|
namespace anm2ed::render
|
|
{
|
|
#define RENDER_LIST \
|
|
X(PNGS, "PNGs", "") \
|
|
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
|
|
{
|
|
bool animation_render(const std::string&, const std::string&, std::vector<resource::Texture>&, AudioStream&,
|
|
render::Type, glm::ivec2, int);
|
|
} |