This discussion is archived
0 Replies Latest reply: Aug 14, 2010 8:57 AM by 843853 RSS

IntBuffe and GLuint

843853 Newbie
Currently Being Moderated
Hey. Rewrites the code from C + + to Java and I have a problem with the 2 method, here's the entire piece of code for the problem
glGenTextures(1, &lutName);
glBindTexture(GL_TEXTURE_3D, lutName);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, tableSize, tableSize,
tableSize, 0, GL_RGBA, GL_FLOAT, mTable);

glGenTextures(1, &lutNameLOD);
glBindTexture(GL_TEXTURE_3D, lutNameLOD);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, tableSize, tableSize,
tableSize, 0, GL_RGBA, GL_FLOAT, mTableLOD); 
and exactly have a problem with

glGenTextures
glBindTexture

The JOGL glGenTextures as the second argument requires IntBuffer object, if that is meant to be as it should look like (in C + + is given an object GLuint)? However, as the last argument glTexImage3D request object buffer in C + + and mTableLOD mTable are a pointer to an array of objects (objects of this class have 4 fields float).
How do I replace the jogl to carry on this way? Like the rest of the code is ok, because the whole had not yet rewritten, and I do not know too much because the application does not work like I wanted, but the compiler does not report error and so far part compiles. Please help. Regards.