Sorry, my english is very bad and may be this is the main reason why nothing is clear.
First issue:
I've no idea what you mean with 'flashing', this could be anything and nothing. Also your very vague when and where it happens...
All code of program:
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(400, 300), "SFML works!");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}
When i "run" this code all all screen goes black, then everything goes back and window appears. All last for about a second.
What i mean with 'flashing'.
Second issue:
When i create an sf::RenderTexture i get the same effect with all screen as i write above. I try to understand why it heppens and can i avoid it.
I gave the code above. But now i get more simple example:
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <unistd.h>
int main()
{
sf::RenderWindow window(sf::VideoMode(400, 300), "SFML works!");
usleep(5000000); //wait 5 second to see second screen effect
sf::RenderTexture texture;
texture.create(200, 200);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.display();
}
return 0;
}
So, when i do "texture.create(200, 200);" screen goes black... everything as I described above.
You probably use the transformation wrong or similar.
The problem is that I did not use transformation.
You should also keep this thread in mind!
If you want our help you need to provide a minimal code example and describe your problems better (e.g. what sort of flashing are you mentioning) this can be illustrated with images or videos.
Most of problems cannot be illustrated with images or video. I try to describe my problems clearly, but i failed...
System:
OS: Linux (Archlinux) x86
Kernel: Linux version 3.0.38-1-lts (tobias@T-POWA-LX) (gcc version 4.7.1 (GCC) )
Video: NVIDIA Corporation G71 [GeForce 7900 GT/GTO]
Video driver: proprietary (nvidia)