I have an IsoTile class like that :
#ifndef IsoTile_hpp
#define IsoTile_hpp
#include "Entity.hpp"
class IsoTile: public Entity
{
private:
sf::VertexArray mLine;
float mThickness = 0;
sf::Vector2f mPositionInWindow;
sf::Vector2f mScale;
public:
IsoTile(int tileWidth, int tileHeight, int thickness);
const sf::Vector2f getPositionInWindow() { return mPositionInWindow; };
const sf::Vector2f getTileScale() { return mScale; };
void setPositionInWindow(float x, float y);
void setPositionInWindow(sf::Vector2f &position);
void setTexturePosition(int x, int y);
void setDimension(int width, int height, int thickness);
void setDimension(sf::Vector2i dim, int thickness);
float getThickness() { return mThickness; };
};
#endif /* IsoTile_hpp */
And the constructor :
IsoTile::IsoTile(int tileWidth, int tileHeight, int thickness) : Entity(tileWidth, tileHeight)
{
setDimension(tileWidth, tileHeight, thickness);
getConvex().setFillColor(sf::Color::White);
mScale.x = 1;
mScale.y = 1;
}
The setFillColor here doesn't working...