SFML community forums

Help => Graphics => Topic started by: SDKey on December 04, 2011, 01:01:43 pm

Title: How to draw sprite on texture in SFML2.0?
Post by: SDKey on December 04, 2011, 01:01:43 pm
I have this objects in SFML 2.0:
Code: [Select]
sf::Texture texture1; texture1.LoadFromFile("texture1.jpg");
sf::Texture texture2; texture2.LoadFromFile("texture2.jpg");
sf::Sprite sprite1(texture1);
How to render sprite1 on texture2?
Title: How to draw sprite on texture in SFML2.0?
Post by: Nexus on December 04, 2011, 02:09:50 pm
Take a look at sf::RenderTexture.