Code example for IntBuffer

Methods: get

0
		buffer.order(ByteOrder.nativeOrder());
		ByteBuffer tmp = ByteBuffer.allocateDirect(4);
		tmp.order(ByteOrder.nativeOrder());
		IntBuffer intBuffer = tmp.asIntBuffer();
 
		GL20.glGetProgramInfoLog(program, intBuffer, buffer);
		int numBytes = intBuffer.get(0);
		byte[] bytes = new byte[numBytes];
		buffer.get(bytes);
		return new String(bytes);
	} 
 
	public void glGetProgramiv (int program, int pname, IntBuffer params) {
		GL20.glGetProgram(program, pname, params);
	} 
 
	public void glGetRenderbufferParameteriv (int target, int pname, IntBuffer params) {
		EXTFramebufferObject.glGetRenderbufferParameterEXT(target, pname, params);
	} 
 
	public String glGetShaderInfoLog (int shader) {