SFML community forums

Help => Graphics => Topic started by: First on June 03, 2015, 07:49:15 pm

Title: Drawing graphs abroad Screen
Post by: First on June 03, 2015, 07:49:15 pm
forgive my English. I wanted to ask. Draws any graphics screen SFML abroad ???
Title: Re: Drawing graphs abroad Screen
Post by: Jesper Juhl 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?
Title: Re: Drawing graphs abroad Screen
Post by: First on June 03, 2015, 08:58:08 pm
will be the sprite drawing on screen if the X-axis, he -100 pixels?????
Title: Re: Drawing graphs abroad Screen
Post by: Jesper Juhl 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 ;)
Title: Re: Drawing graphs abroad Screen
Post by: Mario 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. :)
Title: Re: Drawing graphs abroad Screen
Post by: Jesper Juhl 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.