Hi,
I installed a snapshot of the 2.0 not two weeks ago on my opensuse 11.4. I wanted to follow the good advice in
this example of the doc: "make sure that rendering to image is supported". So I used the condition from the example but now g++ won't compile my code, saying: "main.cpp:5:18: error: ‘IsAvailable’ is not a member of ‘sf::RenderImage’". main.cpp is the minimal example I used to check that this line was the only possible source of error:
#include <SFML/Graphics.hpp>
#include <iostream>
int main() {
std::cout << ((sf::RenderImage::IsAvailable())? "True" : "False") << std::endl;
return 0;
}
Am I doing something wrong here? I thought it might be a bug either in the example that shouldn't use it (it is not listed as a public method in the doc) or in the code where it should be public.