Flatten src into model, edit and ui, with .h headers

Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui.
Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization.
Includes are written from src.
This commit is contained in:
shweet committed 2026-11-22 17:12:05 -05:00
1 parent a515267e26
commit 7fb2c607c2
175 files changed
+537 -537

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <cstdint>
#include <unordered_map>
#include "audio_data.h"
#include "image.h"
namespace anm2ed::resource
{
// Immutable images and sounds keyed by content hash. Undo history records keys, never pixels or bytes, and
// entries live until the document closes so any step can be restored.
class AssetStore
{
std::unordered_map<std::uint64_t, Image> images{};
std::unordered_map<std::uint64_t, AudioData> audio{};
public:
std::uint64_t image_add(Image);
std::uint64_t audio_add(AudioData);
const Image* image_get(std::uint64_t) const;
const AudioData* audio_get(std::uint64_t) const;
};
}