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

Author Topic: Render text using vertexarrays.  (Read 1852 times)

0 Members and 2 Guests are viewing this topic.

andariel97

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
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.
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
    • View Profile
    • Email
Re: Render text using vertexarrays.
« Reply #2 on: November 28, 2016, 12:23:18 pm »
Thank you for your answer.

 

anything