Visual Studio 2013
sfml 2.1 [myself compiled]
sf::Text fps;
void gameWindow::setTextProperties(sf::Text &text, std::string string, unsigned char_size, sf::Color color, sf::Font font, sf::Vector2f position, float angle, sf::Uint32 style)
{
text.setString(string);
text.setCharacterSize(char_size);
text.setColor(color);
text.setFont(font);
text.setPosition(position);
text.setRotation(angle);
text.setStyle(style);
text.setOrigin(gameMath::setOrigin(text.getGlobalBounds()));
}
setTextProperties(fps, "", 12, sf::Color::Magenta, *gameFilesMgr::instance().getFont("font-orbitron-medium"), sf::Vector2f(2,2), 0, sf::Text::Regular);
fps.setString("string");
window.draw(fps);
it crashes when i call setTextProperties.
i had this problem even in sfml 2.0 .
font-orbitron-medium -> not the problem because same line is used in my npc's names
I have no idea where is the problem.