Canvas windows, settings and manager: share view code and list I/O
- CanvasView base holds checker pan sync, zoom step, grid panel, view buttons and view context menu - frame_parent_model_get replaces five root/group transform compositions - Canvas builds VAOs through one helper, unifies uniform setters and frees the texture VAO/VBO/EBO (leak fix) - Settings load/save loop over component suffix tables; unused settings Type enum removed - Manager shares one path-list load/save for recent and autosave files - Anonymous namespaces removed per project style Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4638a422d
commit
ec72a30ce0
16 files changed
+558
-814
No files matched your search
@@ -40,6 +40,12 @@ namespace anm2ed
|
||||
return frames;
|
||||
}
|
||||
|
||||
glm::mat4 frame_parent_model_get(const Element& frame)
|
||||
{
|
||||
return math::quad_model_parent_get(frame.position, {}, math::percent_to_unit(frame.scale), frame.rotation,
|
||||
math::percent_to_unit(frame.shear));
|
||||
}
|
||||
|
||||
Element frame_generate(const Element& track, float time)
|
||||
{
|
||||
auto frame = element_make(track_frame_type_get(track));
|
||||
|
||||
Reference in new issue
Block a user