glLightfv ? what does the offset_params mean?

hi guys,

I downloaded the latest version of jogl and having some problems with it. what does the argument params_offset in method gl.gllightfv mean. It was not present in the previous version. Moreover what is a float buffer and when am i suppose to use it. I would appreciate if somebody can explain me or give me a link(not javadoc) that in detail would explain what the new version classes and methods mean. I already have the javadoc. I want some description along with it.
public void glLightfv(int light,
int pname,
float[] params,
int params_offset)

thanks,
ravi

not sure but I think, it mean where to find param in your array, so, the starting offest, maybe to enable the use of a single array for multiple call with different values.

Sorry but the overview javadoc is the documentation describing the mapping between the C APIs and the Java APIs and how something like a C float* maps to a Java FloatBuffer and (float[], intI pair.

DzzD is right, the offset argument indexes into the float[] array. If you aren’t doing anything fancy then passing 0 is the right thing to do.

thanks a lot guys. I got it. I would like to know one more thing. I am able to run jogl with java web start on a windows xp machine. I am dowloading the libraries and jogl.jar on to the client machine and the application runs fine. Will it work the same for windows 2000 and for all the other versions of windows os. All the machines we are using have XP. I just want to know if any body had any problems with other windows os.
thanks,
ravi.

There should be no problems. I don’t know about Windows NT 4 and Windows 95 but JOGL works fine on Windows 2000.

thanks a lot ken. appreciated. great work.

ravi.