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

+3 -3
View File
@@ -61,15 +61,15 @@ add_custom_command(
# The core: the model, edits, undo and file formats, with no window or OpenGL. The tests link it alone. # The core: the model, edits, undo and file formats, with no window or OpenGL. The tests link it alone.
file(GLOB CORE_SOURCES CONFIGURE_DEPENDS src/edit/*.cpp src/model/*.cpp) file(GLOB CORE_SOURCES CONFIGURE_DEPENDS src/edit/*.cpp src/model/*.cpp)
foreach(FILE log resource/image resource/audio_data resource/asset_store util/file util/path util/math util/time foreach(FILE log image audio_data asset_store file path math_util timestamp working_directory pack ui/multiselect
util/working_directory util/pack util/imgui/multiselect snapshots playback selection) snapshots playback selection)
list(APPEND CORE_SOURCES src/${FILE}.cpp) list(APPEND CORE_SOURCES src/${FILE}.cpp)
endforeach() endforeach()
add_library(anm2ed_core STATIC ${CORE_SOURCES} external/pugixml/src/pugixml.cpp external/imgui/imgui.cpp add_library(anm2ed_core STATIC ${CORE_SOURCES} external/pugixml/src/pugixml.cpp external/imgui/imgui.cpp
external/imgui/imgui_draw.cpp external/imgui/imgui_widgets.cpp external/imgui/imgui_tables.cpp external/imgui/imgui_draw.cpp external/imgui/imgui_widgets.cpp external/imgui/imgui_tables.cpp
${CMAKE_BINARY_DIR}/embed/embed.c) ${CMAKE_BINARY_DIR}/embed/embed.c)
target_include_directories(anm2ed_core PUBLIC include external external/imgui external/glm external/stb src target_include_directories(anm2ed_core PUBLIC include external external/imgui external/glm external/stb src
src/imgui src/resource src/util ${CMAKE_BINARY_DIR}/embed) ${CMAKE_BINARY_DIR}/embed)
target_link_libraries(anm2ed_core PUBLIC lunasvg simdjson SDL3::Headers) target_link_libraries(anm2ed_core PUBLIC lunasvg simdjson SDL3::Headers)
target_compile_definitions(anm2ed_core PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS target_compile_definitions(anm2ed_core PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS
$<$<CONFIG:Debug>:IMGUI_DEBUG_PARANOID> $<$<BOOL:${WIN32}>:NOMINMAX>) $<$<CONFIG:Debug>:IMGUI_DEBUG_PARANOID> $<$<BOOL:${WIN32}>:NOMINMAX>)
@@ -1,4 +1,4 @@
#include "asset_store.hpp" #include "asset_store.h"
#include <span> #include <span>
@@ -3,8 +3,8 @@
#include <cstdint> #include <cstdint>
#include <unordered_map> #include <unordered_map>
#include "audio_data.hpp" #include "audio_data.h"
#include "image.hpp" #include "image.h"
namespace anm2ed::resource namespace anm2ed::resource
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "audio.hpp" #include "audio.h"
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
+1 -1
View File
@@ -3,7 +3,7 @@
#include <SDL3_mixer/SDL_mixer.h> #include <SDL3_mixer/SDL_mixer.h>
#include <glm/vec2.hpp> #include <glm/vec2.hpp>
#include "audio_data.hpp" #include "audio_data.h"
// Playback of AudioData; decoded audio and tracks are cached per AudioData uid. // Playback of AudioData; decoded audio and tracks are cached per AudioData uid.
namespace anm2ed::resource::audio namespace anm2ed::resource::audio
@@ -1,9 +1,9 @@
#include "audio_data.hpp" #include "audio_data.h"
#include <fstream> #include <fstream>
#include <iterator> #include <iterator>
#include "uid.hpp" #include "uid.h"
namespace anm2ed::resource namespace anm2ed::resource
{ {
File renamed without changes.
@@ -1,4 +1,4 @@
#include "audio_stream.hpp" #include "audio_stream.h"
#include <algorithm> #include <algorithm>
File renamed without changes.
+3 -3
View File
@@ -1,12 +1,12 @@
#include "canvas.hpp" #include "canvas.h"
#include <algorithm> #include <algorithm>
#include <glm/ext/matrix_clip_space.hpp> #include <glm/ext/matrix_clip_space.hpp>
#include <glm/ext/matrix_transform.hpp> #include <glm/ext/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp> #include <glm/gtc/type_ptr.hpp>
#include "math.hpp" #include "math_util.h"
#include "texture.hpp" #include "texture.h"
using namespace glm; using namespace glm;
using namespace anm2ed::resource; using namespace anm2ed::resource;
+5 -5
View File
@@ -6,12 +6,12 @@
#include <glad/glad.h> #include <glad/glad.h>
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "framebuffer.hpp" #include "framebuffer.h"
#include "image.hpp" #include "image.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "shader.hpp" #include "shader.h"
#include "types.hpp" #include "types.h"
namespace anm2ed namespace anm2ed
{ {
+10 -10
View File
@@ -1,4 +1,4 @@
#include "cli.hpp" #include "cli.h"
#include <algorithm> #include <algorithm>
#include <charconv> #include <charconv>
@@ -9,15 +9,15 @@
#include <print> #include <print>
#include <string> #include <string>
#include "canvas.hpp" #include "canvas.h"
#include "document.hpp" #include "document.h"
#include "image.hpp" #include "image.h"
#include "model/xml.hpp" #include "model/xml.h"
#include "path.hpp" #include "path.h"
#include "render.hpp" #include "render.h"
#include "sdl.hpp" #include "sdl.h"
#include "settings.hpp" #include "settings.h"
#include "working_directory.hpp" #include "working_directory.h"
using namespace anm2ed::util; using namespace anm2ed::util;
View File
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "clipboard.hpp" #include "clipboard.h"
#include <SDL3/SDL_clipboard.h> #include <SDL3/SDL_clipboard.h>
#include <SDL3/SDL_stdinc.h> #include <SDL3/SDL_stdinc.h>
File renamed without changes.
+5 -5
View File
@@ -1,12 +1,12 @@
#include "dialog.hpp" #include "dialog.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#elif __unix__ #elif __unix__
#else #else
#include "log.hpp" #include "log.h"
#include "strings.hpp" #include "localization.h"
#include "toast.hpp" #include "ui/toast.h"
#endif #endif
#include <cctype> #include <cctype>
@@ -14,7 +14,7 @@
#include <cstring> #include <cstring>
#include <format> #include <format>
#include "path.hpp" #include "path.h"
using namespace anm2ed::util; using namespace anm2ed::util;
View File
File renamed without changes.
+13 -13
View File
@@ -1,4 +1,4 @@
#include "document.hpp" #include "document.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
@@ -15,18 +15,18 @@
#include <SDL3/SDL_video.h> #include <SDL3/SDL_video.h>
#include "file.hpp" #include "file.h"
#include "log.hpp" #include "log.h"
#include "manager.hpp" #include "manager.h"
#include "math.hpp" #include "math_util.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "model/xml.hpp" #include "model/xml.h"
#include "pack.hpp" #include "pack.h"
#include "path.hpp" #include "path.h"
#include "render.hpp" #include "render.h"
#include "strings.hpp" #include "localization.h"
#include "toast.hpp" #include "ui/toast.h"
#include "working_directory.hpp" #include "working_directory.h"
using namespace anm2ed::imgui; using namespace anm2ed::imgui;
using namespace anm2ed::types; using namespace anm2ed::types;
+7 -7
View File
@@ -9,16 +9,16 @@
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include "asset_store.hpp" #include "asset_store.h"
#include "edit/edit.hpp" #include "edit/edit.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "selection.hpp" #include "selection.h"
#include "snapshots.hpp" #include "snapshots.h"
#include "strings.hpp" #include "localization.h"
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "shader.hpp" #include "shader.h"
namespace anm2ed namespace anm2ed
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
#include "edit.hpp" #include "edit/edit.h"
#include "model/xml.hpp" #include "model/xml.h"
using namespace anm2ed::model; using namespace anm2ed::model;
+3 -3
View File
@@ -1,10 +1,10 @@
#include "edit.hpp" #include "edit/edit.h"
#include <format> #include <format>
#include <unordered_map> #include <unordered_map>
#include "model/frames.hpp" #include "model/frames.h"
#include "model/xml.hpp" #include "model/xml.h"
using namespace anm2ed::model; using namespace anm2ed::model;
+3 -3
View File
@@ -8,9 +8,9 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "image.hpp" #include "image.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "model/model.hpp" #include "model/model.h"
// Document edits as plain functions of the model. Each returns the uids of the elements it created or changed that // Document edits as plain functions of the model. Each returns the uids of the elements it created or changed that
// the caller may want to select (the first one is the focus); selection itself stays with the UI. // the caller may want to select (the first one is the focus); selection itself stays with the UI.
+3 -3
View File
@@ -1,11 +1,11 @@
#include "edit.hpp" #include "edit/edit.h"
#include <cmath> #include <cmath>
#include <map> #include <map>
#include <tuple> #include <tuple>
#include "math.hpp" #include "math_util.h"
#include "model/frames.hpp" #include "model/frames.h"
using namespace anm2ed::model; using namespace anm2ed::model;
using namespace anm2ed::util; using namespace anm2ed::util;
+4 -4
View File
@@ -1,11 +1,11 @@
#include "edit.hpp" #include "edit/edit.h"
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
#include "math.hpp" #include "math_util.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "model/xml.hpp" #include "model/xml.h"
using namespace anm2ed::util; using namespace anm2ed::util;
using namespace anm2ed::model; using namespace anm2ed::model;
+3 -3
View File
@@ -1,11 +1,11 @@
#include "edit.hpp" #include "edit/edit.h"
#include <algorithm> #include <algorithm>
#include <format> #include <format>
#include <map> #include <map>
#include "math.hpp" #include "math_util.h"
#include "model/frames.hpp" #include "model/frames.h"
using namespace anm2ed::model; using namespace anm2ed::model;
using namespace anm2ed::util; using namespace anm2ed::util;
+4 -4
View File
@@ -1,13 +1,13 @@
#include "edit.hpp" #include "edit/edit.h"
#include <algorithm> #include <algorithm>
#include <format> #include <format>
#include <limits> #include <limits>
#include <unordered_map> #include <unordered_map>
#include "model/frames.hpp" #include "model/frames.h"
#include "pack.hpp" #include "pack.h"
#include "path.hpp" #include "path.h"
using namespace anm2ed::model; using namespace anm2ed::model;
using namespace anm2ed::resource; using namespace anm2ed::resource;
+1 -1
View File
@@ -1,4 +1,4 @@
#include "edit.hpp" #include "edit/edit.h"
using namespace anm2ed::model; using namespace anm2ed::model;
+1 -1
View File
@@ -1,4 +1,4 @@
#include "file.hpp" #include "file.h"
#include <array> #include <array>
View File
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "font.hpp" #include "font.h"
namespace anm2ed::resource namespace anm2ed::resource
{ {
File renamed without changes.
+2 -2
View File
@@ -1,6 +1,6 @@
#include "framebuffer.hpp" #include "framebuffer.h"
#include "texture.hpp" #include "texture.h"
using namespace anm2ed::resource; using namespace anm2ed::resource;
using namespace glm; using namespace glm;
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5 -5
View File
@@ -1,4 +1,4 @@
#include "image.hpp" #include "image.h"
#include <algorithm> #include <algorithm>
#include <climits> #include <climits>
@@ -31,10 +31,10 @@
#include <lunasvg.h> #include <lunasvg.h>
#include <pugixml/src/pugixml.hpp> #include <pugixml/src/pugixml.hpp>
#include "file.hpp" #include "file.h"
#include "math.hpp" #include "math_util.h"
#include "path.hpp" #include "path.h"
#include "uid.hpp" #include "uid.h"
using namespace anm2ed::resource::image; using namespace anm2ed::resource::image;
using namespace anm2ed::util::math; using namespace anm2ed::util::math;
File renamed without changes.
+8 -8
View File
@@ -1,4 +1,4 @@
#include "loader.hpp" #include "loader.h"
#include <cerrno> #include <cerrno>
#include <cstdint> #include <cstdint>
@@ -10,15 +10,15 @@
#include <SDL3_mixer/SDL_mixer.h> #include <SDL3_mixer/SDL_mixer.h>
#include "log.hpp" #include "log.h"
#include "sdl.hpp" #include "sdl.h"
#include "texture.hpp" #include "texture.h"
#include "snapshots.hpp" #include "snapshots.h"
#include "socket.hpp" #include "socket.h"
#include "util/imgui/theme.hpp" #include "ui/theme.h"
#include "util/math.hpp" #include "math_util.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
+2 -2
View File
@@ -7,8 +7,8 @@
#include <SDL3/SDL.h> #include <SDL3/SDL.h>
#include "settings.hpp" #include "settings.h"
#include "socket.hpp" #include "socket.h"
namespace anm2ed namespace anm2ed
{ {
File renamed without changes.
+5 -5
View File
@@ -1,4 +1,4 @@
#include "log.hpp" #include "log.h"
#include <algorithm> #include <algorithm>
#include <array> #include <array>
@@ -8,10 +8,10 @@
#include <print> #include <print>
#include <vector> #include <vector>
#include "file.hpp" #include "file.h"
#include "path.hpp" #include "path.h"
#include "strings.hpp" #include "localization.h"
#include "time.hpp" #include "timestamp.h"
#if _WIN32 #if _WIN32
#include <fcntl.h> #include <fcntl.h>
View File
File renamed without changes.
+5 -5
View File
@@ -1,8 +1,8 @@
#include "cli.hpp" #include "cli.h"
#include "loader.hpp" #include "loader.h"
#include "log.hpp" #include "log.h"
#include "sdl.hpp" #include "sdl.h"
#include "state.hpp" #include "state.h"
#ifdef _WIN32 #ifdef _WIN32
#define SDL_MAIN_HANDLED #define SDL_MAIN_HANDLED
+11 -11
View File
@@ -1,20 +1,20 @@
#include "manager.hpp" #include "manager.h"
#include <algorithm> #include <algorithm>
#include <unordered_set> #include <unordered_set>
#include <format> #include <format>
#include "file.hpp" #include "file.h"
#include "log.hpp" #include "log.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "path.hpp" #include "path.h"
#include "sdl.hpp" #include "sdl.h"
#include "strings.hpp" #include "localization.h"
#include "toast.hpp" #include "ui/toast.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
#include "vector.hpp" #include "vector.h"
using namespace anm2ed::types; using namespace anm2ed::types;
using namespace anm2ed::util; using namespace anm2ed::util;
+4 -4
View File
@@ -8,10 +8,10 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "document.hpp" #include "document.h"
#include "settings.hpp" #include "settings.h"
#include "strings.hpp" #include "localization.h"
#include "util/imgui/popup.hpp" #include "ui/popup.h"
namespace anm2ed namespace anm2ed
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "math.hpp" #include "math_util.h"
#include <ctime> #include <ctime>
#include <glm/ext/matrix_transform.hpp> #include <glm/ext/matrix_transform.hpp>
File renamed without changes.
+1 -1
View File
@@ -6,7 +6,7 @@
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "types.hpp" #include "types.h"
#define ANM2_ELEMENT_TYPES \ #define ANM2_ELEMENT_TYPES \
X(UNKNOWN, "") \ X(UNKNOWN, "") \
+3 -3
View File
@@ -1,10 +1,10 @@
#include "draw.hpp" #include "model/draw.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include "frames.hpp" #include "model/frames.h"
#include "math.hpp" #include "math_util.h"
using namespace anm2ed::util; using namespace anm2ed::util;
+1 -1
View File
@@ -4,7 +4,7 @@
#include <optional> #include <optional>
#include <vector> #include <vector>
#include "model.hpp" #include "model/model.h"
// What an animation draws at a time, as plain data: every canvas (preview, render, about) draws from this list. // What an animation draws at a time, as plain data: every canvas (preview, render, about) draws from this list.
namespace anm2ed::model namespace anm2ed::model
+3 -3
View File
@@ -1,10 +1,10 @@
#include "frames.hpp" #include "model/frames.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include "draw.hpp" #include "model/draw.h"
#include "math.hpp" #include "math_util.h"
using namespace anm2ed::util; using namespace anm2ed::util;
+1 -1
View File
@@ -3,7 +3,7 @@
#include <set> #include <set>
#include <vector> #include <vector>
#include "draw.hpp" #include "model/draw.h"
namespace anm2ed::model namespace anm2ed::model
{ {
+4 -4
View File
@@ -1,4 +1,4 @@
#include "json.hpp" #include "model/json.h"
#include <algorithm> #include <algorithm>
#include <charconv> #include <charconv>
@@ -8,9 +8,9 @@
#include <simdjson/singleheader/simdjson.h> #include <simdjson/singleheader/simdjson.h>
#include "math.hpp" #include "math_util.h"
#include "path.hpp" #include "path.h"
#include "xml.hpp" #include "model/xml.h"
using namespace simdjson; using namespace simdjson;
using namespace anm2ed::util; using namespace anm2ed::util;
+1 -1
View File
@@ -3,7 +3,7 @@
#include <string> #include <string>
#include <string_view> #include <string_view>
#include "model.hpp" #include "model/model.h"
// The editor's own JSON document: content items in arrays (an item's index is its id), animations keyed by their // The editor's own JSON document: content items in arrays (an item's index is its id), animations keyed by their
// unique name, and every value left out when it is the default. Unknown XML (extras) is not kept. // unique name, and every value left out when it is the default. Unknown XML (extras) is not kept.
+3 -3
View File
@@ -1,10 +1,10 @@
#include "model.hpp" #include "model/model.h"
#include <algorithm> #include <algorithm>
#include <unordered_set> #include <unordered_set>
#include "image.hpp" #include "image.h"
#include "path.hpp" #include "path.h"
using namespace anm2ed::util; using namespace anm2ed::util;
+2 -2
View File
@@ -11,8 +11,8 @@
#include <variant> #include <variant>
#include <vector> #include <vector>
#include "model/common.hpp" #include "model/common.h"
#include "uid.hpp" #include "uid.h"
// The typed document model. XML exists only in model/xml.cpp; everything else edits and reads these structs. // The typed document model. XML exists only in model/xml.cpp; everything else edits and reads these structs.
namespace anm2ed::model namespace anm2ed::model
+7 -7
View File
@@ -1,4 +1,4 @@
#include "xml.hpp" #include "model/xml.h"
#include <algorithm> #include <algorithm>
#include <charconv> #include <charconv>
@@ -12,12 +12,12 @@
#include <pugixml/src/pugixml.hpp> #include <pugixml/src/pugixml.hpp>
#include "file.hpp" #include "file.h"
#include "frames.hpp" #include "model/frames.h"
#include "json.hpp" #include "model/json.h"
#include "math.hpp" #include "math_util.h"
#include "path.hpp" #include "path.h"
#include "time.hpp" #include "timestamp.h"
using namespace anm2ed::util; using namespace anm2ed::util;
+1 -1
View File
@@ -3,7 +3,7 @@
#include <filesystem> #include <filesystem>
#include <string> #include <string>
#include "model.hpp" #include "model/model.h"
// The only place the model meets XML: reading and writing documents (with the SourceDocument copy) and clipboard text. // The only place the model meets XML: reading and writing documents (with the SourceDocument copy) and clipboard text.
namespace anm2ed::model namespace anm2ed::model
+1 -1
View File
@@ -1,4 +1,4 @@
#include "pack.hpp" #include "pack.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
View File
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "path.hpp" #include "path.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
View File
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "playback.hpp" #include "playback.h"
#include <cmath> #include <cmath>
View File
File renamed without changes.
+12 -12
View File
@@ -1,4 +1,4 @@
#include "render.hpp" #include "render.h"
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
@@ -16,17 +16,17 @@
#include <SDL3/SDL_video.h> #include <SDL3/SDL_video.h>
#include <glad/glad.h> #include <glad/glad.h>
#include "audio.hpp" #include "audio.h"
#include "canvas.hpp" #include "canvas.h"
#include "document.hpp" #include "document.h"
#include "file.hpp" #include "file.h"
#include "log.hpp" #include "log.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "pack.hpp" #include "pack.h"
#include "path.hpp" #include "path.h"
#include "process.hpp" #include "subprocess.h"
#include "texture.hpp" #include "texture.h"
#include "toast.hpp" #include "ui/toast.h"
using namespace anm2ed::imgui; using namespace anm2ed::imgui;
using namespace anm2ed::resource; using namespace anm2ed::resource;
+2 -2
View File
@@ -5,8 +5,8 @@
#include <filesystem> #include <filesystem>
#include <vector> #include <vector>
#include "audio_data.hpp" #include "audio_data.h"
#include "audio_stream.hpp" #include "audio_stream.h"
#include <glm/glm.hpp> #include <glm/glm.hpp>
struct SDL_Window; struct SDL_Window;
+2 -2
View File
@@ -1,8 +1,8 @@
#include "resources.hpp" #include "resources.h"
#include <ranges> #include <ranges>
#include "log.hpp" #include "log.h"
using namespace anm2ed::resource; using namespace anm2ed::resource;
+5 -5
View File
@@ -2,11 +2,11 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "audio.hpp" #include "audio.h"
#include "font.hpp" #include "font.h"
#include "icon.hpp" #include "icon.h"
#include "shader.hpp" #include "shader.h"
#include "texture.hpp" #include "texture.h"
namespace anm2ed namespace anm2ed
{ {
+2 -2
View File
@@ -1,9 +1,9 @@
#include "sdl.hpp" #include "sdl.h"
#include <SDL3/SDL_filesystem.h> #include <SDL3/SDL_filesystem.h>
#include <SDL3/SDL_stdinc.h> #include <SDL3/SDL_stdinc.h>
#include "path.hpp" #include "path.h"
namespace anm2ed::util::sdl namespace anm2ed::util::sdl
{ {
View File
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "selection.hpp" #include "selection.h"
namespace anm2ed namespace anm2ed
{ {
+1 -1
View File
@@ -3,7 +3,7 @@
#include <map> #include <map>
#include <set> #include <set>
#include "model/model.hpp" #include "model/model.h"
namespace anm2ed namespace anm2ed
{ {
+5 -5
View File
@@ -1,13 +1,13 @@
#include "settings.hpp" #include "settings.h"
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include <tuple> #include <tuple>
#include "file.hpp" #include "file.h"
#include "log.hpp" #include "log.h"
#include "math.hpp" #include "math_util.h"
#include "path.hpp" #include "path.h"
using namespace anm2ed::util; using namespace anm2ed::util;
using namespace glm; using namespace glm;
+5 -5
View File
@@ -5,11 +5,11 @@
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "model/common.hpp" #include "model/common.h"
#include "render.hpp" #include "render.h"
#include "strings.hpp" #include "localization.h"
#include "types.hpp" #include "types.h"
#include "util/imgui/theme.hpp" #include "ui/theme.h"
namespace anm2ed namespace anm2ed
{ {
+3 -3
View File
@@ -1,4 +1,4 @@
#include "shader.hpp" #include "shader.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
@@ -6,8 +6,8 @@
#include <sstream> #include <sstream>
#include <utility> #include <utility>
#include "log.hpp" #include "log.h"
#include "model/model.hpp" #include "model/model.h"
namespace anm2ed::resource::shader namespace anm2ed::resource::shader
{ {
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "snapshots.hpp" #include "snapshots.h"
#include <utility> #include <utility>
+3 -3
View File
@@ -5,9 +5,9 @@
#include <optional> #include <optional>
#include <string> #include <string>
#include "model/model.hpp" #include "model/model.h"
#include "playback.hpp" #include "playback.h"
#include "selection.hpp" #include "selection.h"
namespace anm2ed::snapshots namespace anm2ed::snapshots
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "socket.hpp" #include "socket.h"
#include <cerrno> #include <cerrno>
#include <climits> #include <climits>
View File
File renamed without changes.
+8 -8
View File
@@ -1,4 +1,4 @@
#include "state.hpp" #include "state.h"
#include <algorithm> #include <algorithm>
@@ -7,13 +7,13 @@
#include <imgui/backends/imgui_impl_opengl3.h> #include <imgui/backends/imgui_impl_opengl3.h>
#include <imgui/backends/imgui_impl_sdl3.h> #include <imgui/backends/imgui_impl_sdl3.h>
#include "log.hpp" #include "log.h"
#include "math.hpp" #include "math_util.h"
#include "path.hpp" #include "path.h"
#include "strings.hpp" #include "localization.h"
#include "texture.hpp" #include "texture.h"
#include "toast.hpp" #include "ui/toast.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
using namespace anm2ed::imgui; using namespace anm2ed::imgui;
using namespace anm2ed::util; using namespace anm2ed::util;
+1 -1
View File
@@ -5,7 +5,7 @@
#include <filesystem> #include <filesystem>
#include <vector> #include <vector>
#include "dockspace.hpp" #include "ui/dockspace.h"
namespace anm2ed namespace anm2ed
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "process.hpp" #include "subprocess.h"
#ifdef WIN32 #ifdef WIN32
#include <string> #include <string>
File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
#include "texture.hpp" #include "texture.h"
#include <lunasvg.h> #include <lunasvg.h>
#include <memory> #include <memory>
+1 -1
View File
@@ -2,7 +2,7 @@
#include <glad/glad.h> #include <glad/glad.h>
#include "image.hpp" #include "image.h"
// GPU copies of Images, uploaded on first use and evicted when a frame passes without them being drawn. // GPU copies of Images, uploaded on first use and evicted when a frame passes without them being drawn.
namespace anm2ed::resource::texture namespace anm2ed::resource::texture
+1 -1
View File
@@ -1,4 +1,4 @@
#include "time.hpp" #include "timestamp.h"
#include <chrono> #include <chrono>
#include <ctime> #include <ctime>
File renamed without changes.
+3 -3
View File
@@ -2,9 +2,9 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "icon.hpp" #include "icon.h"
#include "settings.hpp" #include "settings.h"
#include "strings.hpp" #include "localization.h"
namespace anm2ed::tool namespace anm2ed::tool
{ {
View File
File renamed without changes.
@@ -1,4 +1,4 @@
#include "about.hpp" #include "ui/about.h"
#include <algorithm> #include <algorithm>
#include <cfloat> #include <cfloat>
@@ -10,14 +10,14 @@
#include <imgui.h> #include <imgui.h>
#include <imgui_internal.h> #include <imgui_internal.h>
#include "audio.hpp" #include "audio.h"
#include "log.hpp" #include "log.h"
#include "math.hpp" #include "math_util.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "model/xml.hpp" #include "model/xml.h"
#include "strings.hpp" #include "localization.h"
#include "util/imgui/draw.hpp" #include "ui/draw.h"
using namespace anm2ed::resource; using namespace anm2ed::resource;
using namespace anm2ed::util; using namespace anm2ed::util;
@@ -8,10 +8,10 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "../../canvas.hpp" #include "canvas.h"
#include "../../model/model.hpp" #include "model/model.h"
#include "../../resource/friends.hpp" #include "friends.h"
#include "../../resources.hpp" #include "resources.h"
namespace anm2ed::imgui::wizard namespace anm2ed::imgui::wizard
{ {
+3 -3
View File
@@ -1,9 +1,9 @@
#include "actions.hpp" #include "ui/actions.h"
#include <utility> #include <utility>
#include "util/imgui/layout.hpp" #include "ui/layout.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
namespace anm2ed::imgui namespace anm2ed::imgui
{ {
+2 -2
View File
@@ -5,8 +5,8 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "manager.hpp" #include "manager.h"
#include "settings.hpp" #include "settings.h"
namespace anm2ed::imgui namespace anm2ed::imgui
{ {
@@ -1,4 +1,4 @@
#include "animation_preview.hpp" #include "ui/animation_preview.h"
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
@@ -14,21 +14,21 @@
#include <glm/gtc/type_ptr.hpp> #include <glm/gtc/type_ptr.hpp>
#include "actions.hpp" #include "ui/actions.h"
#include "log.hpp" #include "log.h"
#include "math.hpp" #include "math_util.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "model/frames.hpp" #include "model/frames.h"
#include "path.hpp" #include "path.h"
#include "strings.hpp" #include "localization.h"
#include "toast.hpp" #include "ui/toast.h"
#include "tool.hpp" #include "tool.h"
#include "types.hpp" #include "types.h"
#include "util/imgui/draw.hpp" #include "ui/draw.h"
#include "util/imgui/input.hpp" #include "ui/input.h"
#include "util/imgui/layout.hpp" #include "ui/layout.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
#include "window/timeline/timeline.hpp" #include "ui/timeline.h"
using namespace anm2ed::types; using namespace anm2ed::types;
using namespace anm2ed::util; using namespace anm2ed::util;
@@ -3,13 +3,13 @@
#include <tuple> #include <tuple>
#include <vector> #include <vector>
#include "audio_stream.hpp" #include "audio_stream.h"
#include "canvas_view.hpp" #include "ui/canvas_view.h"
#include "manager.hpp" #include "manager.h"
#include "model/draw.hpp" #include "model/draw.h"
#include "render.hpp" #include "render.h"
#include "resources.hpp" #include "resources.h"
#include "settings.hpp" #include "settings.h"
namespace anm2ed::imgui namespace anm2ed::imgui
{ {
@@ -1,13 +1,13 @@
#include "panel.hpp" #include "ui/panel.h"
#include <algorithm> #include <algorithm>
#include <format> #include <format>
#include <optional> #include <optional>
#include "util/imgui/draw.hpp" #include "ui/draw.h"
#include "util/imgui/layout.hpp" #include "ui/layout.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
#include "util/imgui/tree.hpp" #include "ui/tree.h"
using namespace anm2ed::resource; using namespace anm2ed::resource;
using namespace anm2ed::types; using namespace anm2ed::types;
@@ -1,9 +1,9 @@
#include "autosave_restore.hpp" #include "ui/autosave_restore.h"
#include <format> #include <format>
#include "path.hpp" #include "path.h"
#include "util/imgui/layout.hpp" #include "ui/layout.h"
using namespace anm2ed::resource; using namespace anm2ed::resource;
using namespace anm2ed::util; using namespace anm2ed::util;
@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "manager.hpp" #include "manager.h"
#include "strings.hpp" #include "localization.h"
namespace anm2ed::imgui namespace anm2ed::imgui
{ {
@@ -1,12 +1,12 @@
#include "canvas_view.hpp" #include "ui/canvas_view.h"
#include <glm/gtc/type_ptr.hpp> #include <glm/gtc/type_ptr.hpp>
#include "actions.hpp" #include "ui/actions.h"
#include "edit/edit.hpp" #include "edit/edit.h"
#include "util/imgui/input.hpp" #include "ui/input.h"
#include "util/imgui/layout.hpp" #include "ui/layout.h"
#include "util/imgui/shortcut.hpp" #include "ui/shortcut.h"
using namespace anm2ed::types; using namespace anm2ed::types;
using namespace anm2ed::util; using namespace anm2ed::util;
Loaded 100 of 175 files, more files were not shown because too many files have changed in this diff. Show more