SFML community forums
Bindings - other languages => Java => Topic started by: white2demon on January 22, 2015, 07:50:55 pm
-
How to update the window in JSFML???
-
https://github.com/pdinklag/JSFML/wiki/Windows
I found this thanks to the liesard's reply to your other message (http://en.sfml-dev.org/forums/index.php?topic=17313) which suggested that you should try to figure things out for yourself. Therefore, I don't think anything more specific should be needed.
-
I have rarely seen posts where this document has been more relevant: How To Ask Questions The Smart Way (http://www.catb.org/esr/faqs/smart-questions.html).
Please read it in full - twice.
-
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
-
Sorry. I don't Java.
-
How to redraw the Window? (Repaint)
-
Simply use the link Hapax gave you:
//Fill the window with red window.
clear(Color.
RED); //Display (Redraw the window) window.
display();
-
Also, you can totally check out this thing that I wrote: https://liesard.wordpress.com/2015/01/11/basic-jsfml-setup/ (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.