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

Author Topic: Update window?  (Read 9067 times)

0 Members and 1 Guest are viewing this topic.

white2demon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Update window?
« on: January 22, 2015, 07:50:55 pm »
How to update the window in JSFML???

Hapax

  • Hero Member
  • *****
  • Posts: 3387
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Update window?
« Reply #1 on: January 22, 2015, 10:05:40 pm »
https://github.com/pdinklag/JSFML/wiki/Windows

I found this thanks to the liesard's reply to your other message which suggested that you should try to figure things out for yourself. Therefore, I don't think anything more specific should be needed.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Update window?
« Reply #2 on: January 23, 2015, 01:19:10 pm »
I have rarely seen posts where this document has been more relevant: How To Ask Questions The Smart Way.
Please read it in full - twice.

white2demon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Update window?
« Reply #3 on: January 23, 2015, 03:21:14 pm »
If I write here , so I don't understand? (I apologize in advance , I am Russian and have problems with English). Could you give the code exactly? It is necessary to redraw the window. As add new objects

Hapax

  • Hero Member
  • *****
  • Posts: 3387
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Update window?
« Reply #4 on: January 23, 2015, 10:36:18 pm »
Sorry. I don't Java.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

white2demon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Update window?
« Reply #5 on: January 24, 2015, 05:14:28 pm »
How to redraw the Window? (Repaint)

math1992

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
    • Email
Re: Update window?
« Reply #6 on: January 24, 2015, 06:22:26 pm »
Simply use the link Hapax gave you:

//Fill the window with red
    window.clear(Color.RED);

 //Display (Redraw the window)
    window.display();
 

liesard

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Update window?
« Reply #7 on: January 26, 2015, 12:27:21 am »
Also, you can totally check out this thing that I wrote: https://liesard.wordpress.com/2015/01/11/basic-jsfml-setup/
(Shameless self-promotion, I know :P )

Just keep in mind that the forum is not here to teach you how to program, but rather to solve problems specific to your need.  For example, gravity and collision in a game.  Something like that.

 

anything