23 friend void ::framebuffer_size_callback(
GLFWwindow* window,
int w,
int h);
24 friend class ui::UIRender;
28 std::unique_ptr<ui::Context> ui_render_{
nullptr};
29 std::unordered_map<mobject::AbsMObject*, object::object_ptr> objects_;
30 std::unique_ptr<camera::AbsCamera> default_camera_{
nullptr};
31 std::unique_ptr<animation::TimelineDriver> playing_timeline_{
nullptr};
32 std::chrono::high_resolution_clock::time_point last_time_point_;
33 const camera::AbsCamera* current_camera_{
nullptr};
34 std::vector<xcal::render::opengl::GL::RenderCommand> render_commands_;
45 bool_t play_timeline(animation::Timeline* timeline);
46 void show(
int width = 800,
int height = 600);
48 void set_scene(Scene* scene)
override;
49 std::vector<char> read_pixels_char()
const;
51 return default_camera_.get();
54 return current_camera_;