EDIT3: I didn't removed it because it may help someone. If anyone can tell me if I have been doing the color thing all wrong, please do.
I had a code::blocks version (10.02 or something like that) and I saw there was a new version, and I thought, hey let's update.
First, I tried compiling my Platform project, and this error happened: "error: cannot call constructor 'sf::Color::Color' directly [-fpermissive]", so I decided to try using sf::Color::Color on a simpler code and the same error happened.
Basically I can't do this:
window.clear(Color::Color(120,120,120));
but I can do this
window.clear(Color(120,120,120));
______________________________________
EDIT 2: I read about cMake, and unofficial nightly builds, so if anyone encounters the erroor below, try recompiling SFML and works.
However new projects doesn't work, not even this really simple code.
#include <SFML/Graphics.hpp>
using namespace sf;
int main()
{
RenderWindow window(VideoMode(800, 600, 32), "SFML basic");
CircleShape shape(150.f);
shape.setFillColor(Color::Blue);
while (window.isOpen()){
Event event;
while (window.pollEvent(event)){
if (event.type == Event::Closed){
window.close();
}
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Process terminated with status -1073741819 (0 minutes, 3 seconds)
Is this a code::blocks issue and I should post that there? or is it a SFML one? I've never encountered that error before, and googling provides no useful results