Login  Register

Is there no GL_INT?

Posted by fmorat on Apr 12, 2022; 3:53am
URL: https://forum.jogamp.org/Is-there-no-GL-INT-tp4041721.html


I'm trying to pass an integer attribute to the shader but there doesn't seem to be any GL_INT.
Only the GL_FLOAT exists.

com.jogamp.opengl.GL.GL_FLOAT

I'm trying to use the GL_INT instead of the GL_FLOAT in the code below:

                        int location=BONE_INDEX_LOC;
                        gl.glBindBuffer(GL_ARRAY_BUFFER, this.matrixIndexBufferId_);
                        gl.glVertexAttribPointer(location,weightsPerVertex_, com.jogamp.opengl.GL.GL_FLOAT, false, 0, 0);
                        gl.glEnableVertexAttribArray(location);