Sure, but it won't be helpful.
This code is for version 2.0. (which is the one you should use, maybe your linux repo is still in 1.6)
http://www.sfml-dev.org/tutorials/2.0/graphics-draw.php#include <SFML/Graphics.hpp>
int main()
{
// create the window
sf::RenderWindow window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
// clear the window with black color
window.clear(sf::Color::Black);
// draw everything here...
// window.draw(...);
// end the current frame
window.display();
}
return 0;
}
+
http://www.sfml-dev.org/documentation/2.0/classsf_1_1Texture.php// This example shows the most common use of sf::Texture:
// drawing a sprite
// Load a texture from a file
sf::Texture texture;
if (!texture.loadFromFile("texture.png"))
return -1;
// Assign it to a sprite
sf::Sprite sprite;
sprite.setTexture(texture);
// Draw the textured sprite
window.draw(sprite);
=
#include <SFML/Graphics.hpp>
int main()
{
// create the window
sf::RenderWindow window(sf::VideoMode(800, 600), "My window");
// load a texture from a file
sf::Texture texture;
if (!texture.loadFromFile("texture.png"))
return -1;
// assign it to a sprite
sf::Sprite sprite;
sprite.setTexture(texture);
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
// clear the window with black color
window.clear(sf::Color::Black);
// draw everything here...
// draw the textured sprite
window.draw(sprite);
// end the current frame
window.display();
}
return 0;
}
Or you could post your real code and errors.