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

Author Topic: Clock in sf:Window  (Read 698 times)

0 Members and 1 Guest are viewing this topic.

Garwin

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Clock in sf:Window
« on: May 17, 2023, 07:56:03 pm »
I can see that sf::Window has member sf::Clock and it is used for FrameLimit.

Why there is no public function to provide time between frames if sf::Window has this information?

Thrasher

  • SFML Team
  • Jr. Member
  • *****
  • Posts: 53
    • View Profile
Re: Clock in sf:Window
« Reply #1 on: May 17, 2023, 09:10:47 pm »
https://github.com/SFML/SFML/pull/2554

It's so funny you bring this up because I made this very PR yesterday! Please give this a thumbs up or approval if it's something you'd use.

Garwin

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Clock in sf:Window
« Reply #2 on: May 19, 2023, 08:18:26 am »
It is I get the idea morning but wrote it there in the evening so practically at the same time you were writing it on GitHub. :-)

I will, but I need first to create an account on GitHub and get familiar with how to work with it. I have not yet found the time to do it through all the learning C++ staff and my first small game (15 puzzle style with pictures) is so badly written it is not worth publishing it.

However, I am now working on creating borders in style 4x game using cells and a Voronoi diagram, and as the basic structure is about 70 % finished, I hope that I can finish it in a couple of weeks as time allows to make exact calculations algorithm.

 

anything