mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
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:
9
View.h
9
View.h
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user