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

Author Topic: Any analog to SDL's expose event?  (Read 4849 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32502
    • View Profile
    • SFML's website
    • Email
Re: Any analog to SDL's expose event?
« Reply #15 on: October 11, 2012, 09:59:49 am »
Sorry, I just want to understand what your actual problem is. Because I really don't get it.
Laurent Gomila - SFML developer

cha0s

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Any analog to SDL's expose event?
« Reply #16 on: October 11, 2012, 11:42:41 am »
There really is no problem I assure you! Due to certain backends (like SFML) being unable to deal with partial render states, I am accounting for this by periodically flushing the render tree to make sure any stale (that is, clean) areas of the screen get updated no matter what.

I was merely inquiring whether SFML had a mechanism to intercept from the window manager events to notify my application exactly where to redraw. I linked an example of SDL's mechanism, another example is QPaintEvent in Qt.

Since I don't have to worry about the performance hit, I am simply disregarding dirty rectangle information provided to the render() function of the SFML implementation of the Window SPI.

There's no discussion left to be had here, any that existed was merely my inquiry and my subsequent clarification of my intent.
« Last Edit: October 11, 2012, 12:01:20 pm by cha0s »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32502
    • View Profile
    • SFML's website
    • Email
Re: Any analog to SDL's expose event?
« Reply #17 on: October 11, 2012, 02:19:13 pm »
Ok :D

I'm really sorry, I'm a bit tired and unfocused these days because of my little baby.
Laurent Gomila - SFML developer

cha0s

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Any analog to SDL's expose event?
« Reply #18 on: October 11, 2012, 06:38:16 pm »
No worries. :) Thanks for taking as much time as you do to make open source!