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 - ngocdung93

Pages: [1]
1
Graphics / Re: How to display a digital clock on SFML window?
« on: December 06, 2013, 11:29:18 am »
ok i got it.thanks you all.

2
Graphics / Re: How to display a digital clock on SFML window?
« on: December 06, 2013, 03:43:32 am »
if i have a texture and a clock, how could i bring the clock to the front? the texture is always in front of it and i can't see the clock

3
Graphics / Re: How to display a digital clock on SFML window?
« on: December 06, 2013, 02:56:16 am »
thanks u very much. i'll give it a try

4
Graphics / How to display a digital clock on SFML window?
« on: December 05, 2013, 08:07:45 pm »
Can you help me with displaying a digital clock? With both minute and second please.

5
Audio / Re: Can you help me with the code for a simple audio player please
« on: December 03, 2013, 05:34:06 am »
thank you anyway. i am trying my best,hope to figure it out soon.

6
Audio / Can you help me with the code for a simple audio player please
« on: December 02, 2013, 03:38:29 pm »
Hi everybody. I am a newbie and i have a homework about coding a simple audio player. I can write a program that show a plain window when you open it and play the audio but could you show me how to insert a picture into that window and have click function (click to play-click to pause, something like that).

This is my code

sf::RenderWindow window(sf::VideoMode(sf::VideoMode::getDesktopMode()), "SFML");
   sf::SoundBuffer buffer;
    if (!buffer.loadFromFile("Music.wav"))
        return -1;
   sf::Sound sound;
   sound.setBuffer(buffer);
   sound.play();
   while(window.isOpen())
   {
      sf::Event event;
      while(window.pollEvent(event))
      {
         if(event.type == sf::Event::Closed)
            window.close();
      }
   }

Pages: [1]