重构出Core2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user