Hello Guest

Dont understand the Time Tutorial

  • 7 Replies
  • 7879 Views
Dont understand the Time Tutorial
« 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 :)

*

Offline kappa

  • *****
  • 1316
Re: Dont understand the Time Tutorial
« Reply #1 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.

Re: Dont understand the Time Tutorial
« Reply #2 on: July 13, 2012, 07:25:45 »
Ohh okay i understand now thanks :)
and what about the second question? about another sources?? :D

*

Offline kappa

  • *****
  • 1316
Re: Dont understand the Time Tutorial
« Reply #3 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 wiki page has a bunch of external sources you can use.
« Last Edit: July 13, 2012, 13:14:30 by kappa »

Re: Dont understand the Time Tutorial
« Reply #4 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?

Re: Dont understand the Time Tutorial
« Reply #5 on: July 13, 2012, 17:20:50 »
some one can answer my question?

*

Offline moci

  • *
  • 27
    • mathiasverboven.net
Re: Dont understand the Time Tutorial
« Reply #6 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.

Re: Dont understand the Time Tutorial
« Reply #7 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