Names that only a namespace told apart get prefixes: TOOL_PAN, FONT_BOLD, ICON_FOLDER, COLOR_WHITE, path_to_utf8 and so on. The OpenGL shader class is ShaderProgram, and its uniform ShaderUniform, beside the document's Shader and Uniform. Free functions a member of the same name would hide are called through :: for now. Two unused shader window helpers are gone.
45 lines
1.7 KiB
C++
45 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
|
|
#include "model/model.h"
|
|
|
|
// The only place the model meets XML: reading and writing documents (with the SourceDocument copy) and clipboard text.
|
|
// What the game's copy of a save can't keep as it is: how many of each.
|
|
struct IsaacIssues
|
|
{
|
|
int easedFrames{};
|
|
int groupTransforms{};
|
|
int skewFrames{};
|
|
int shaderFrames{};
|
|
int depthFrames{};
|
|
int alphaOffsetFrames{};
|
|
int blurFrames{};
|
|
int triggerSounds{};
|
|
int extraEvents{};
|
|
int animationLayers{};
|
|
int vectorSpritesheets{};
|
|
|
|
bool operator==(const IsaacIssues&) const = default;
|
|
};
|
|
|
|
Model model_make();
|
|
IsaacIssues isaac_issues_get(const Model&);
|
|
void model_repair(Model&);
|
|
bool model_load(Model&, const std::filesystem::path&, std::string* = nullptr);
|
|
bool model_load_string(Model&, std::string_view, std::string* = nullptr);
|
|
bool model_save(const Model&, const std::filesystem::path&, std::string* = nullptr, Options = {});
|
|
std::string model_to_string(const Model&, Options = {});
|
|
std::string model_serialize(const Model&, Flags);
|
|
std::uint64_t model_hash(const Model&);
|
|
|
|
std::string frame_to_string(const Frame&, ItemType);
|
|
std::string animation_to_string(const Animation&, int = -1);
|
|
std::string animation_group_to_string(const AnimationGroup&);
|
|
std::vector<Frame> frames_from_string(const std::string&, ItemType, std::string* = nullptr);
|
|
std::vector<AnimationEntry> animations_from_string(const std::string&, std::string* = nullptr);
|
|
|
|
template <class Item> std::string item_to_string(const Item&);
|
|
template <class Item> std::vector<Item> items_from_string(const std::string&, std::string* = nullptr);
|