Commit Graph
16 Commits
Author SHA1 Message Date
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 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 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00
shweet 8388fd5d99 logging 2025-08-15 17:17:11 -04:00
shweet fe8bdae9a8 The Update(TM), Part 1 2025-07-27 22:08:57 -04:00
shweet 30880c003d The Omega Refactor(TM) + Input Options 2025-06-30 21:29:59 -04:00
shweet ea2e7e918c forming the skeleton 2025-06-21 21:36:32 -04:00
shweet 91190987ed basics 2025-06-19 05:29:06 -04:00
shweet 91d01a1441 first commit 2025-06-15 22:03:02 -04:00