SFML community forums
Help => Graphics => Topic started by: First on June 03, 2015, 07:49:15 pm
-
forgive my English. I wanted to ask. Draws any graphics screen SFML abroad ???
-
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?
-
will be the sprite drawing on screen if the X-axis, he -100 pixels?????
-
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 ;)
-
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. :)
-
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.