名称优化
This commit is contained in:
@@ -109,19 +109,19 @@ struct Point_Set_Private : Typed_Render_Data<Point_Set, Point_Set_Render_State,
|
||||
}
|
||||
};
|
||||
RENDERIVE_DEFINE_RENDERABLE_BINDING(Point_Set, Point_Set_Private, Point_Set_Render_State, Point_Set_Input_Data, "point_set")
|
||||
void Point_Set::give_points(std::span<const PointF> points) {
|
||||
void Point_Set::update_points(std::span<const PointF> points) {
|
||||
if (!ok())
|
||||
return;
|
||||
Render_Input_Lease<Point_Set_Private, Point_Set_Input_Data> input(d());
|
||||
input->push(points);
|
||||
}
|
||||
void Point_Set::give_points(std::pmr::vector<PointF>&& points) {
|
||||
void Point_Set::update_points(std::pmr::vector<PointF>&& points) {
|
||||
if (!ok())
|
||||
return;
|
||||
Render_Input_Lease<Point_Set_Private, Point_Set_Input_Data> input(d());
|
||||
input->push(std::move(points));
|
||||
}
|
||||
void Point_Set::give_colored_points(std::span<const PointF> points, std::span<const Color> colors) {
|
||||
void Point_Set::update_colored_points(std::span<const PointF> points, std::span<const Color> colors) {
|
||||
if (points.size() != colors.size())
|
||||
return;
|
||||
if (!ok())
|
||||
@@ -129,7 +129,7 @@ void Point_Set::give_colored_points(std::span<const PointF> points, std::span<co
|
||||
Render_Input_Lease<Point_Set_Private, Point_Set_Input_Data> input(d());
|
||||
input->push(points, colors);
|
||||
}
|
||||
void Point_Set::give_colored_points(std::pmr::vector<PointF>&& points, std::pmr::vector<Color>&& colors) {
|
||||
void Point_Set::update_colored_points(std::pmr::vector<PointF>&& points, std::pmr::vector<Color>&& colors) {
|
||||
if (points.size() != colors.size())
|
||||
return;
|
||||
if (!ok())
|
||||
|
||||
Reference in New Issue
Block a user