@Override
    public void onAction(String name, boolean isPressed, float tpf) {
        if ("drag".equals(name)) {
            dragging = isPressed;
            inputManager.setCursorVisible(!isPressed);
        }
    }
This test class tests the capability to write to a GL texture from OpenCL.
Move the mouse around while pressing the left mouse key to modify the fractal.

In addition, this test shows how to use {@link ProgramCache}.

@author shaman
jme3-examples/src/main/java/jme3test/opencl/TestWriteToTexture.java