Almost done with implementation of Transition! Settings and UI side

pannel are operational. View is stable and animation with UpdateCallback
implemented.
This commit is contained in:
brunoherbelin
2020-07-06 00:06:49 +02:00
parent d4a22992eb
commit b5985847bf
14 changed files with 229 additions and 78 deletions

9
View.h
View File

@@ -113,6 +113,7 @@ public:
glm::vec3 resolution() const { return frame_buffer_->resolution(); }
void setFading(float f = 0.f);
float fading() const;
inline FrameBuffer *frame () const { return frame_buffer_; }
};
@@ -155,16 +156,18 @@ public:
void attach(SessionSource *ts);
class Session *detach();
inline SessionSource * attached() { return transition_source_; }
void centerSource(Source *) override;
void play();
void draw () override;
void update (float dt) override;
void zoom (float factor) override;
std::pair<Node *, glm::vec2> pick(glm::vec2 P) override;
Cursor grab (Source *s, glm::vec2 from, glm::vec2 to, std::pair<Node *, glm::vec2> pick) override;
private:
float duration_;
class Surface *output_surface_;
class Mesh *mark_half_;
SessionSource *transition_source_;
};