Is there no GL_INT?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there no GL_INT?

fmorat

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);


Reply | Threaded
Open this post in threaded view
|

Re: Is there no GL_INT?

gouessej
Administrator