LWJGL Forum

Programming => LWJGL Documentation => Topic started by: Yarin1312 on July 12, 2012, 17:57:43

Title: Dont understand the Time Tutorial
Post by: Yarin1312 on July 12, 2012, 17:57:43
I'm really dont understand the time tutorial in the wiki, so i have a few question:
1.in this sentence:
The Sys.getTime() method is LWJGL's high resolution timer and will return time in 'ticks'
what they mean in tick?- they mean cycle, can you please explain about it a little bit?
2. there is another source to learn LWJGL except wiki? thank you very much :)
Title: Re: Dont understand the Time Tutorial
Post by: kappa on July 12, 2012, 21:39:42
'Ticks' can be in any format (nanoseconds, microsecond, milliseconds, etc) whichever is deemed to be best on the platform. The Sys.getTimerResolution() method will return the number of 'ticks' in a second. This value can then be used for timing.
Title: Re: Dont understand the Time Tutorial
Post by: Yarin1312 on July 13, 2012, 07:25:45
Ohh okay i understand now thanks :)
and what about the second question? about another sources?? :D
Title: Re: Dont understand the Time Tutorial
Post by: kappa on July 13, 2012, 13:12:42
The LWJGL specific API is only a handful of classes and methods, for stuff like creating a Display window, Keyboard, Mouse and Controllers, the basic tutorials on the wiki pretty much cover those. As for the rest, do keep in mind that LWJGL is just a simple binding to the OpenGL, OpenAL and OpenCL libraries and you will have to learn how to use those libraries to create anything. The Learning LWJGL (http://www.lwjgl.org/wiki/index.php?title=Learning_LWJGL) wiki page has a bunch of external sources you can use.
Title: Re: Dont understand the Time Tutorial
Post by: Yarin1312 on July 13, 2012, 13:55:44
So what you're saying it that i have to learn from the wiki its the basics, helper Liberies and Applets and after i learn those i have to learn opengl, open al and opencl and to combine them in my code? its matter if i learn it from this wiki or another source i just have to import the appropriate version of opengl for example?
Title: Re: Dont understand the Time Tutorial
Post by: Yarin1312 on July 13, 2012, 17:20:50
some one can answer my question?
Title: Re: Dont understand the Time Tutorial
Post by: moci on July 13, 2012, 18:05:48
Yes, you'll have to learn the supported API's from other sources. You can usually convert from the original documentation (usually C/C++) to LWJGL fairly easy because the LWJGL bindings for the most part have the same function calls and attribute names as the original API.
Title: Re: Dont understand the Time Tutorial
Post by: Yarin1312 on July 13, 2012, 19:10:46
I'm actually now only java and a little bit asm, and i think that it wont help me, about the other sources, i saw the sources in Learinning LWJGL and most of them are not talking about LWJGL they talk about JAVA and develop games, and the sources thet talk about LWJGL its the same like in wiki, you have a spacific sources that you learn from them and you can give me them or give me an advise about learnning LWJGL in the best way? :D