mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-24 01:47:20 +01:00
Renamed 2 deprecated methods in PaintAction, and removed virtual from sym point helper methods.
This commit is contained in:
parent
a5c5201aa8
commit
9da781e8b8
@ -187,7 +187,7 @@ PoolVector2iArray PaintAction::get_xy_sym_points(const int canvas_width, const i
|
||||
return points;
|
||||
}
|
||||
|
||||
PoolVector2iArray PaintAction::get_points(PaintCanvasOld *canvas, const Vector2i &pixel) {
|
||||
PoolVector2iArray PaintAction::get_points_old(PaintCanvasOld *canvas, const Vector2i &pixel) {
|
||||
PoolVector2iArray points;
|
||||
|
||||
if (canvas->symmetry_x && canvas->symmetry_y) {
|
||||
@ -255,7 +255,7 @@ PoolVector2iArray PaintAction::get_points(PaintCanvasOld *canvas, const Vector2i
|
||||
return points;
|
||||
}
|
||||
|
||||
void PaintAction::draw_points(PaintCanvasOld *canvas, const PoolVector2iArray &point_arr, const PoolColorArray &color_arr) {
|
||||
void PaintAction::draw_points_old(PaintCanvasOld *canvas, const PoolVector2iArray &point_arr, const PoolColorArray &color_arr) {
|
||||
for (int i = 0; i < point_arr.size(); ++i) {
|
||||
Vector2i pixel = point_arr[i];
|
||||
|
||||
|
@ -101,12 +101,13 @@ public:
|
||||
bool can_commit();
|
||||
virtual bool _can_commit();
|
||||
|
||||
virtual PoolVector2iArray get_x_sym_points(const int canvas_width, const Vector2i &pixel);
|
||||
virtual PoolVector2iArray get_y_sym_points(const int canvas_height, const Vector2i &pixel);
|
||||
virtual PoolVector2iArray get_xy_sym_points(const int canvas_width, const int canvas_height, const Vector2i &pixel);
|
||||
virtual PoolVector2iArray get_points(PaintCanvasOld *canvas, const Vector2i &pixel);
|
||||
PoolVector2iArray get_x_sym_points(const int canvas_width, const Vector2i &pixel);
|
||||
PoolVector2iArray get_y_sym_points(const int canvas_height, const Vector2i &pixel);
|
||||
PoolVector2iArray get_xy_sym_points(const int canvas_width, const int canvas_height, const Vector2i &pixel);
|
||||
|
||||
void draw_points(PaintCanvasOld *canvas, const PoolVector2iArray &point_arr, const PoolColorArray &color_arr);
|
||||
PoolVector2iArray get_points_old(PaintCanvasOld *canvas, const Vector2i &pixel);
|
||||
|
||||
void draw_points_old(PaintCanvasOld *canvas, const PoolVector2iArray &point_arr, const PoolColorArray &color_arr);
|
||||
|
||||
PaintAction();
|
||||
~PaintAction();
|
||||
|
@ -39,7 +39,7 @@ void PencilAction::do_action_old(PaintCanvasOld *canvas, const Array &data) {
|
||||
for (int i = 0; i < pixels.size(); ++i) {
|
||||
Vector2i pixel = pixels[i];
|
||||
|
||||
PoolVector2iArray points = get_points(canvas, pixel);
|
||||
PoolVector2iArray points = get_points_old(canvas, pixel);
|
||||
|
||||
for (int j = 0; j < points.size(); ++j) {
|
||||
Vector2i p = points[j];
|
||||
|
Loading…
Reference in New Issue
Block a user