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

Author Topic: Does SFML 1.6 Do clipping automatically?  (Read 2287 times)

0 Members and 1 Guest are viewing this topic.

burningprodigy

  • Newbie
  • *
  • Posts: 4
    • View Profile
Does SFML 1.6 Do clipping automatically?
« on: July 08, 2012, 11:17:52 am »
I'm creating a rogue-like tile-based 2d RPG game. What I want to know is, say there are sprites outside the screen which are drawn with the `App.Draw()` method. Now, will the `Draw()` method automatically not draw the sprites which are off-screen, or will I have to personally write code to prevent the drawing of off-screen sprites? I've made some games with Java2D and Swing, there the toolkit automatically does not draw off-screen images, does SFML do the same?


G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Does SFML 1.6 Do clipping automatically?
« Reply #1 on: July 08, 2012, 11:35:46 am »
You have to write it yourself. ^^
(very easy for tile-based game)

 

anything