@Override
    public int[] generateProfilingTasks(int numTasks) {
        IntBuffer ids = BufferUtils.createIntBuffer(numTasks);
        gl.glGenQueries(numTasks, ids);
        return BufferUtils.getIntArray(ids);
    }
Convert a mesh mode to the corresponding GL value.

@param mode input enum value (not null)
@return the corresponding GL value
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java