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

Author Topic: Get texture from sf::Text object  (Read 2090 times)

0 Members and 1 Guest are viewing this topic.

andariel97

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Get texture from sf::Text object
« on: July 06, 2017, 03:49:48 pm »
I need to get a texture from a sf::Text object then mix it with another texture in a GLSL Shader. How can i do that?

fallahn

  • Hero Member
  • *****
  • Posts: 507
  • Buns.
    • View Profile
    • Trederia
Re: Get texture from sf::Text object
« Reply #1 on: July 06, 2017, 05:53:59 pm »
Use the getTexture() function of the sf::Font associated with the text.

https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Font.php#a887368a4e6a3dfa32dea89d2af315951

 

anything