重构出Core2

This commit is contained in:
2026-08-10 19:55:29 +08:00
parent 602e73f3b3
commit cfc0849081
44 changed files with 4977 additions and 341 deletions
+5 -14
View File
@@ -1,23 +1,14 @@
#include "Explicit_Plot_p.h"
#include "Explicit_Plot.h"
#include "Plot_p.h"
namespace renderive {
Explicit_Plot_Private::Explicit_Plot_Private()
: Abs_Plot_Private(std::make_unique<Explicit_Frame_Flow>()) {
explicit_flow = static_cast<Explicit_Frame_Flow*>(flow);
}
Explicit_Plot::Explicit_Plot()
: Abs_Plot(new Explicit_Plot_Private()) {}
: Abs_Plot(new Abs_Plot_Private(false)) {}
Render_Ticket Explicit_Plot::replot() {
auto* data = static_cast<Explicit_Plot_Private*>(d);
if (data->explicit_flow) {
Render_Ticket ticket = data->explicit_flow->request_render();
data->core->request_explicit_render();
return ticket;
}
return {};
return {d->core->render_frame(true)};
}
} // namespace renderive