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

Author Topic: How to draw to a texture of screen size?  (Read 1293 times)

0 Members and 1 Guest are viewing this topic.

bakerw

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to draw to a texture of screen size?
« on: May 23, 2018, 12:52:12 pm »
How do would I draw to a texture of the screen size (greater than 1024x1024), going to be a background for some graphing software rather than drawing a few hundred lines per frame, or is SFML not a good option for this?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: How to draw to a texture of screen size?
« Reply #1 on: May 23, 2018, 01:18:21 pm »
Split from this thread.
Please don't post on 2 years old thread unless it's relevant for the existing thread.

Why do you need to draw to a texture (which only works with a render texture) and can't just draw to the window?
There is a maximum texture size, but it's not fixed to 1024x1024. Since it's a specific software you could also require for the workstations to have enough recent GPUs that will easily support screen size large textures.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/