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

Author Topic: GetFrameTime doesn't exist anymore?  (Read 5212 times)

0 Members and 1 Guest are viewing this topic.

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 190
    • View Profile
GetFrameTime doesn't exist anymore?
« on: March 05, 2012, 06:50:08 pm »
I can't seem to find any alternative to GetFrameTime() in the new SFML.NET bindings. What am I supposed to use instead of GetFrameTime()?

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
TGUI: C++ SFML GUI

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
GetFrameTime doesn't exist anymore?
« Reply #2 on: March 05, 2012, 07:33:18 pm »
Quote
I can't seem to find any alternative to GetFrameTime() in the new SFML.NET bindings. What am I supposed to use instead of GetFrameTime()?

Look at the samples, they are a good source of information when something changes.
Laurent Gomila - SFML developer

TobiasW

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GetFrameTime doesn't exist anymore?
« Reply #3 on: July 07, 2012, 12:01:23 am »
The linked topic points to the "Clock" class which doesn't seem to be present in the SFML .Net version 2.0 RC. (Nor is "Time" which is mentioned in the tutorials.)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: GetFrameTime doesn't exist anymore?
« Reply #4 on: July 07, 2012, 09:19:58 am »
Yep, that's why you should focus on my answer, which is always the correct one of course ;D
Laurent Gomila - SFML developer

TobiasW

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GetFrameTime doesn't exist anymore?
« Reply #5 on: July 07, 2012, 01:08:49 pm »
Okay, I'm stumped. Where can I find the example source code for the .NET RC?
It's not in the download on the download page, and I cannot find them in the repository either.

(Furthermore, though that might not be relevant: The .chm docs for the C++ version include "Time" as an index, while the .NET version doesn't.)
« Last Edit: July 07, 2012, 01:19:24 pm by TobiasW »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: GetFrameTime doesn't exist anymore?
« Reply #6 on: July 07, 2012, 01:34:20 pm »
Yes that's because the downloaded package contains only the .exe files which imho isn't very usefull, but you can find the source on GitHub and here is an example for the use of time. It seems SFML.Net is not implementing the system library but .Net has such a big 'standard' library that you won't need additional stuff.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

TobiasW

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GetFrameTime doesn't exist anymore?
« Reply #7 on: July 07, 2012, 01:58:25 pm »
Oh, I didn't know there's a seperate .Net repository. Where on the homepage can I find that link?

Anyway, thanks! I've looked up what the System library implements and indeed everything in there I can do with .Net alone. Thanks for your help guys!