Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tommy22pa

Pages: [1]
1
Audio / Re: sf::Sound and sf::SoundBuffer declaration order crash
« on: January 19, 2015, 04:43:08 pm »
I hope not.

3
Audio / Re: sf::Sound and sf::SoundBuffer declaration order crash
« on: January 19, 2015, 10:03:42 am »
This works:
int main() {
        sf::Sound sound;
        sf::SoundBuffer buffer;
        buffer.loadFromFile("foo.wav");
        sound.setBuffer(buffer);
        sound.play();
        sound.stop();
        sound.resetBuffer();
        return 0;
}
 

 ;) ;) ;) ;)


4
Graphics / Error display the euro symbol
« on: November 08, 2012, 09:58:58 am »
Error display the euro symbol, why?
greetings thanks

// Declare and load a font
sf::Font font;
font.loadFromFile("arial.ttf");
 
// Create a text
sf::Text text("hello €");
text.setFont(font);
text.setCharacterSize(30);
text.setStyle(sf::Text::Bold);
text.setColor(sf::Color::Red);

// Draw it
window.draw(text);

(hello ◘)

Pages: [1]
anything