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

Author Topic: Get renderer window style  (Read 2956 times)

0 Members and 1 Guest are viewing this topic.

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Get renderer window style
« on: April 16, 2011, 04:53:39 pm »
I don't see anything in doc about how to get current renderer window style.

I can do it without this function but will be better if there are.
In case there are some function or way to get the style someone tell me or even if there none again tell me so I know is there or not.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Get renderer window style
« Reply #1 on: April 16, 2011, 05:13:38 pm »
There's no function to get the style of a window.
Laurent Gomila - SFML developer

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Get renderer window style
« Reply #2 on: April 16, 2011, 10:17:30 pm »
Okay Laurent. I will ask one more thing instend of opening new topic.

Theres no function to get frame limit of renderer window.
Q: Is wrong or dangerous if I write it myself like this:

in Window.hpp I write function:

unsigned int GetFrameLimit() {return myFramerateLimit;}

It's working perfect, but is this correct? I'm using static library if it is important.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Get renderer window style
« Reply #3 on: April 16, 2011, 11:08:47 pm »
Yes it's correct. But do you really need to modify SFML for this? Can't you just store it on your side?
Laurent Gomila - SFML developer

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Get renderer window style
« Reply #4 on: April 16, 2011, 11:16:30 pm »
Yes I can, but I don't like to have lot of variables outside of objects.