Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Get texture from sf::Text object
Print
Pages: [
1
]
Author
Topic: Get texture from sf::Text object (Read 2090 times)
0 Members and 1 Guest are viewing this topic.
andariel97
Newbie
Posts: 14
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?
Logged
fallahn
Hero Member
Posts: 507
Buns.
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
Logged
Twitter
Super Video Golf
Tiled Map loader
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Get texture from sf::Text object
anything