Dont understand the Time Tutorial

Started by Yarin1312, July 12, 2012, 17:57:43

Previous topic - Next topic

Yarin1312

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 :)

kappa

'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.

Yarin1312

Ohh okay i understand now thanks :)
and what about the second question? about another sources?? :D

kappa

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 wiki page has a bunch of external sources you can use.

Yarin1312

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?

Yarin1312


moci

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.

Yarin1312

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