57 name(std::string(
"timeline:") +
64 : animation(animation),
65 name(std::string(
"animation:") +
70 std::vector<ObjectHandle> object_handles_{};
71 std::vector<CameraHandle> camera_handles_{};
72 std::vector<AnimationHandle> animation_handles_{};
73 std::vector<TimelineHandle> timeline_handles_{};
74 CameraHandle default_camera_handles_{
nullptr,
"default"};
75 OpenGLRender* renderer_{
nullptr};
77 std::chrono::high_resolution_clock::time_point last_time_point_;
78 std::chrono::high_resolution_clock::time_point last_update_time_point_;
85 Context(OpenGLRender* renderer);
93 return animation_handles_;
96 return timeline_handles_;
CameraHandle & default_camera_handle()
std::vector< TimelineHandle > & timeline_handles()
OpenGLRender * renderer() const
virtual void before_swap_buffers()=0
Context & operator=(const Context &)=delete
virtual ~Context()=default
Context(const Context &)=delete
std::vector< AnimationHandle > & animation_handles()
std::vector< CameraHandle > & camera_handles()
Context & operator=(Context &&)=delete
Context(Context &&)=delete
std::vector< ObjectHandle > & object_handles()
AnimationHandle(animation::AbsAnimation *animation)
animation::AbsAnimation * animation
animation::Timeline * timeline
TimelineHandle(animation::Timeline *timeline)