/* get the current projection and modelview matrix for visibility checking */
FloatBuffer projection = FloatBuffer.allocate(16);
gl.glGetFloatv(GL.GL_PROJECTION_MATRIX, projection);
FloatBuffer modelview = FloatBuffer.allocate(16);
gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, modelview);
/* get the resulting matrix */
Matrix pm = new Matrix(projection);
Matrix projmodelmatrix = pm.multiply(new Matrix(modelview));