SFML community forums
Help => Window => Topic started by: SuperV1234 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()?
-
http://www.sfml-dev.org/forum/viewtopic.php?t=6831
-
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.
-
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.)
-
Yep, that's why you should focus on my answer, which is always the correct one of course ;D
-
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 (http://www.sfml-dev.org/download.php#2.0-rc), 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.)
-
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 (https://github.com/SFML/SFML.Net)and here (https://github.com/SFML/SFML.Net/blob/master/examples/shader/Shader.cs#L287)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.
-
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!