Files
anm2ed/src/model/frames.hpp
T
shweetandClaude Opus 5.5 0adb0f89bc Frame Blur (Flash's blur filter), child properties in Change All Frame Properties, flips under Visible
Blur is a layer frame's box blur, as Flash's low-quality BlurFilter: a box that many canvas pixels wide, averaged
over the frame's crop (premultiplied) by the texture shader, the quad grown by its reach. An animation layer blurs
its child's draws at least as much. It interpolates, copies, batches (clamped to 0-255), saves as an editor-only
Blur attribute and counts as an Isaac issue.

Change All Frame Properties gains the Child section (animation, mode, start frame, random, restart), applied only
to animation layers and disabled when no animation layer is targeted. Frame Properties' Flip X/Y sit below Visible
instead of inside Child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:16:49 -04:00

24 lines
951 B
C++

#pragma once
#include <set>
#include <vector>
#include "draw.hpp"
namespace anm2ed::model
{
void frame_mix(Frame&, const Frame&, float);
std::vector<Frame> frame_bake_split(const Frame&, const Frame&, int, bool, bool);
glm::mat4 frame_parent_model_get(const Frame&);
void frame_root_transform_apply(Frame&, const Frame&, bool, bool, bool);
Frame frame_generate(const Track&, float);
int frame_index_from_at_frame_get(const Track&, int);
int frame_index_from_time_get(const Track&, float);
float frame_time_from_index_get(const Track&, int);
void frame_bake(Track&, int, int, bool, bool);
void frames_generate_from_grid(Track&, glm::ivec2, glm::ivec2, glm::vec2, int, int, int);
void frames_sort_by_at_frame(Track&);
void frames_change(Track&, FrameChange, ItemType, ChangeType, const std::set<int>&, bool isAnimationLayer = false);
glm::vec4 animation_rect(const Model&, const Animation&, bool, const LibraryGet& = {});
}