LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: i can't understand what is the purpose of these code  (Read 498 times)

abdrnasr

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
i can't understand what is the purpose of these code
« on: September 30, 2016, 18:33:08 »

in the documentation some opengl methods and fields there are no info to tell what it does how can i know what these codes means
as an example :
class GL11 most of the methods do not have info
Logged

Kai

  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 881
Re: i can't understand what is the purpose of these code
« Reply #1 on: September 30, 2016, 18:42:36 »

What do you mean? Every method in the OpenGL classes has attached JavaDocs. You of course need to have the JavaDocs/sources attached to the LWJGL jars.
Logged

abdrnasr

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: i can't understand what is the purpose of these code
« Reply #2 on: September 30, 2016, 19:10:15 »

i was looking in the docs for example in GL11
there is a function called
glTexCoordPointer

that is what is written only in the docs:

public static void glTexCoordPointer(int size,
                     int type,
                     int stride,
                     long pointer_buffer_offset)

i didnt get its meaning
Logged

Kai

  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 881
Re: i can't understand what is the purpose of these code
« Reply #3 on: September 30, 2016, 19:12:44 »

This is not that method's JavaDoc. It's its signature. You have to download the sources/JavaDocs to have JavaDocs.
Besides that: If you want to know a function's meaning and semantics in detail, you can just google it and will usually be directed to www.opengl.org.
Logged