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

Author Topic: Window::setIcon copying?  (Read 2536 times)

0 Members and 3 Guests are viewing this topic.

hagen

  • Newbie
  • *
  • Posts: 2
    • View Profile
Window::setIcon copying?
« on: July 03, 2014, 12:17:05 pm »
Is it safe to assume that Window::setIcon always copies the pixel data, so I do not have to keep them?
Looking into a few implementations (OS X, Unix, Windows) this appears to be the case, but I cannot find a definitive statement in the documentation.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Window::setIcon copying?
« Reply #1 on: July 03, 2014, 12:38:33 pm »
Yes, you don't need to keep the icon data on your side.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Window::setIcon copying?
« Reply #2 on: July 03, 2014, 01:14:59 pm »
We should state this in the documentation. Laurent, do you want to adapt it correspondingly, or should I?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Window::setIcon copying?
« Reply #3 on: July 03, 2014, 01:41:24 pm »
Quote
Laurent, do you want to adapt it correspondingly, or should I?
I'll never say "I'll do it" if you propose to do it 8)
Laurent Gomila - SFML developer

select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: Window::setIcon copying?
« Reply #4 on: July 03, 2014, 01:49:42 pm »
Delegating like a pro.
Follow me on Twitter, why don'tcha? @select_this

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Window::setIcon copying?
« Reply #5 on: July 03, 2014, 01:55:53 pm »
Who knows, maybe you had a very concise and perfectly fitting wording in mind that you wanted to use at all costs :D
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

hagen

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Window::setIcon copying?
« Reply #6 on: July 03, 2014, 05:54:46 pm »
Yes, you don't need to keep the icon data on your side.

Thanks for clarifying that  :)