Commit Graph
32 Commits
Author SHA1 Message Date
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 6f2fc8c196 Load OpenGL through SDL instead of glad
gl.h lists the 62 functions the editor calls, loaded with SDL_GL_GetProcAddress into gl, as in smack-a-brother.
The 25k lines of glad and KHR headers are gone.
2026-11-22 17:36:29 -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 64d6a1d95a Mega Region Update. 2026-02-05 21:34:42 -05:00
shweet 119bbc4081 Refactor + render animation tweaks + updated frame properties + bug fixes 2025-12-17 23:02:00 -05:00
shweet 300e322b9d Sound drag/drop 2025-11-30 22:25:57 -05:00
shweet c57c32aca8 ...Anm2Ed 2.0 2025-11-13 22:06:09 -05:00
shweet 51bf4c2012 Anm2Ed 2.0 2025-11-13 21:53:32 -05:00
shweet bb6b68311b Anm2 merge and adjustments to render animation 2025-11-13 01:19:25 -05:00
shweet 3f666ab18a msvc fixes 2025-11-11 19:16:07 -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 99b7d9f49d FFmpeg and sound support; refactor, etc. 2025-11-01 00:54:22 -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 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00
shweet dbb6d13f34 refactor pt 1; getting each thing right and then will push to main 2025-09-19 17:57:48 -04:00
shweet 9afb845a36 add slight texture inset for layer UVs. 2025-09-13 12:28:37 -04:00
shweet b2cf67a823 Added fit, fixed the layer -1 bug finally, refactored here and there 2025-09-09 17:51:17 -04:00
shweet 9ad464a74a Onionskin, input rebinding, alt icons, settings refactor 2025-09-08 20:18:28 -04:00
shweet a992661c6a Removed GLEW dependency (using GLAD instead), axes now use shader, should now work better 2025-09-05 16:37:45 -04:00
shweet 3546f27655 Moved spritesheet texture handling to anm2 instead of resources; added undoing for spritesheet texture changes; refactoring 2025-08-27 00:28:41 -04:00
shweet 67d36df971 Canvas size fix 2025-08-15 13:52:46 -04:00
shweet 4029828d04 The Omega Update(TM) Part 5 (Finishing) 2025-08-14 21:39:17 -04:00
shweet ea3498692a The Omega Update(TM) Part 4 (Massive Refactor, Change All Frame Properties) 2025-08-14 00:25:35 -04:00
shweet b9c9105621 The Update(TM), Part 2 2025-08-09 00:32:14 -04:00
shweet fe8bdae9a8 The Update(TM), Part 1 2025-07-27 22:08:57 -04:00