Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Render text using vertexarrays.
Print
Pages: [
1
]
Author
Topic: Render text using vertexarrays. (Read 1851 times)
0 Members and 1 Guest are viewing this topic.
andariel97
Newbie
Posts: 14
Render text using vertexarrays.
«
on:
November 28, 2016, 01:57:55 am »
Is there a way to create a sf::Text variable, set up its properties(font,color,fontsize) and the save this as a texture , so later i can use sf::VertexArrays to draw a sprite that has that texture?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
Re: Render text using vertexarrays.
«
Reply #1 on:
November 28, 2016, 11:30:50 am »
You can draw text to a render texture and use that texture for drawing to screen.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
andariel97
Newbie
Posts: 14
Re: Render text using vertexarrays.
«
Reply #2 on:
November 28, 2016, 12:23:18 pm »
Thank you for your answer.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Render text using vertexarrays.