Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to draw sprite on texture in SFML2.0?  (Read 1218 times)

0 Members and 1 Guest are viewing this topic.

SDKey

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to draw sprite on texture in SFML2.0?
« 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?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
How to draw sprite on texture in SFML2.0?
« Reply #1 on: December 04, 2011, 02:09:50 pm »
Take a look at sf::RenderTexture.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything