Commit Graph
27 Commits
Author SHA1 Message Date
shweet ada48aefdd Name row drops, merge sources, playback looping and spritesheet merge options
items_move takes a DropZone, animations_merge MergeSources, Playback::tick PlaybackLoop, and spritesheets_merge SpritesheetMergeOptions.
2026-11-22 18:58:37 -05:00
shweet 228a15b5b3 Open documents in one of three ways instead of two bools, and let dialogs know when they take many files
DocumentOpen (open, new, or restored from an autosave) replaces isNew and isRecent and Manager::new_.
The *_OPEN dialogs pick several files without being told.
2026-11-22 18:56:16 -05:00
shweet 250adcb6e9 Make Document a Snapshot instead of aliasing one
The state undo restores is Document's own members, and Snapshots takes it by reference.
The DocumentData base, the reference members and the placement-new move assignment are gone.
2026-11-22 18:41:04 -05:00
shweet 03bbb93ba6 Replace glm with vec.h
Vec2, IVec2, Vec3, Vec4, IVec4 and a column-major Mat4, with glm's formulas, in one header.
Free functions are vec_ and mat4_ prefixed. The leaked using namespace glm is gone.
Render goldens still match.
2026-11-22 18:15:02 -05:00
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00
shweet 40f6b554b5 Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
2026-11-22 17:27:24 -05:00
shweet 666f65bf3a Remove namespaces, and make file-local helpers static
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.
2026-11-22 17:25:09 -05:00
shweet 7fb2c607c2 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.
2026-11-22 17:12:05 -05:00
shweet 2d27b7e8fb staging some future refactoring, .h -> hpp, fix for rendering w/ audio 2026-03-09 23:08:57 -04:00
shweet 85073a2ab9 spritesheet hashing, navigation fix, etc. 2026-02-06 11:52:33 -05:00
shweet 64d6a1d95a Mega Region Update. 2026-02-05 21:34:42 -05:00
shweet 1b7a49c25d regions and a whole bunch of other shit 2026-01-30 01:13:28 -05:00
shweet 31ac9707e7 preliminary utf-16 stuff 2025-12-13 21:54:29 -05:00
shweet 300e322b9d Sound drag/drop 2025-11-30 22:25:57 -05:00
shweet f44ce80bc0 added item selection 2025-11-19 19:18:33 -05:00
shweet 2259a411a6 Fixed issue with handedness and rotation and move tool 2025-11-18 11:39:12 -05:00
shweet c57c32aca8 ...Anm2Ed 2.0 2025-11-13 22:06:09 -05:00
shweet 3f666ab18a msvc fixes 2025-11-11 19:16:07 -05:00
shweet 993f92e412 fix for filepath to string conversions 2025-11-11 18:54:57 -05:00
shweet 07096c487b fuck git and fuck vs code 2025-11-11 11:25:46 -05:00
shweet 1e35910b0a Refactoring, FFmpeg updates 2025-11-03 00:16:05 -05:00
shweet 62cd94ca78 Big refactor, shuffling a lot of files around 2025-11-01 19:51:19 -04:00
shweet 729d5fb216 Autosave feature, spritesheet editor dashed lines, refactoring, fixes 2025-10-28 15:47:54 -04:00
shweet dd3aeae6d2 Snapshots, refactoring 2025-10-26 16:06:34 -04:00
shweet fe9366f9ef context menus, document refactoring, fixes 2025-10-26 00:10:44 -04:00
shweet 87c2db2a77 Refactoring; structs for popups/multi-selects, additional popups in places 2025-10-22 21:27:11 -04:00
shweet 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00