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

Author Topic: Drawing graphs abroad Screen  (Read 2361 times)

0 Members and 1 Guest are viewing this topic.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Drawing graphs abroad Screen
« on: June 03, 2015, 07:49:15 pm »
forgive my English. I wanted to ask. Draws any graphics screen SFML abroad ???

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Drawing graphs abroad Screen
« Reply #1 on: June 03, 2015, 08:06:39 pm »
I'm sorry, but I have absolutely no idea what you are trying to ask.
Could you perhaps try and rephrase the question or try to explain a bit more?

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Drawing graphs abroad Screen
« Reply #2 on: June 03, 2015, 08:58:08 pm »
will be the sprite drawing on screen if the X-axis, he -100 pixels?????

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Drawing graphs abroad Screen
« Reply #3 on: June 03, 2015, 09:19:18 pm »
If you draw at x==-100 and the sprite is less than 100 pixels wide, then no, it won't be visible on the screen. If the sprite is 300 pixels wide then the rightmost 200 pixels will be visible.
Note that even if the sprite will not be visible, "drawing" it still costs gpu resources.

By the way: the easiest way for you to get an answer to your question would have been to just try it ;)
« Last Edit: June 03, 2015, 09:22:59 pm by Jesper Juhl »

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Drawing graphs abroad Screen
« Reply #4 on: June 04, 2015, 01:16:28 pm »
I think First's question is related to (I think?) cassic SDL. If I remember correctly, some old version didn't blit things with negative X value. I could remember this wrong though. Either way SFML doesn't have such caveats or limits. :)

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Drawing graphs abroad Screen
« Reply #5 on: June 16, 2015, 11:20:20 pm »
If the question was about culling I didn't get it. But you are right; SFML does not cull draws outside the visible screen area - that's left for the application to do itself if needed/wanted.