SDLPP: formatting, make compileable on Linux
This commit is contained in:
@@ -16,9 +16,9 @@ public:
|
||||
LineRenderer( double x1, double y1, double x2, double y2,
|
||||
const std::shared_ptr< Renderer > &r,
|
||||
const std::string &color );
|
||||
LineRenderer( const Line<double> &line,
|
||||
LineRenderer( const Line< double > &line,
|
||||
const std::shared_ptr< Renderer > &r );
|
||||
LineRenderer( const Line<double> &line,
|
||||
LineRenderer( const Line< double > &line,
|
||||
const std::shared_ptr< Renderer > &r,
|
||||
const std::string &color );
|
||||
virtual void setColor( const std::string &color ) override;
|
||||
@@ -28,8 +28,8 @@ public:
|
||||
virtual void custom_move( int /*UNUSED*/ ) override {}
|
||||
virtual void setPos( double x, double y ) override;
|
||||
virtual void setPos( const std::pair< double, double > &pos ) override;
|
||||
virtual void setPos( const Vec2D<double> &vec ) override;
|
||||
virtual Vec2D<double> getPos() const override;
|
||||
virtual void setPos( const Vec2D< double > &vec ) override;
|
||||
virtual Vec2D< double > getPos() const override;
|
||||
virtual int leftmost() override;
|
||||
virtual int topmost() override;
|
||||
virtual int rightmost() override;
|
||||
@@ -43,16 +43,16 @@ public:
|
||||
virtual std::shared_ptr< RenderObject > copySelf() override;
|
||||
|
||||
virtual SDL_Rect getRect() override;
|
||||
virtual std::pair< Vec2D<double>, Vec2D<double>>
|
||||
virtual std::pair< Vec2D< double >, Vec2D< double > >
|
||||
getDoubleRect() const override;
|
||||
void setOutlineColor( const std::string & /*UNUSED*/ ) override {}
|
||||
|
||||
protected:
|
||||
virtual void copyTo(std::shared_ptr<RenderObject> other) override;
|
||||
virtual void copyTo( std::shared_ptr< RenderObject > other ) override;
|
||||
void updateXY();
|
||||
Line<double> original = {{0, 0}, {0, 0}};
|
||||
Line<double> current = {{0, 0}, {0, 0}};
|
||||
Line<int> pixel_line = {{0, 0}, {0, 0}};
|
||||
Line< double > original = { { 0, 0 }, { 0, 0 } };
|
||||
Line< double > current = { { 0, 0 }, { 0, 0 } };
|
||||
Line< int > pixel_line = { { 0, 0 }, { 0, 0 } };
|
||||
bool centerx = false;
|
||||
std::tuple< int, int, int, int > _color;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user