static void offsetCursor ( Buffer sourceBuffer , Buffer destBuffer , int offsetX , int offsetY , int width , int height , int depth , int transparentPixel ) { switch ( depth ) { case 32 : offsetCursor32 ( ( IntBuffer ) sourceBuffer , ( IntBuffer ) destBuffer , offsetX , offsetY , width , height , transparentPixel ) ; break ; case 16 : offsetCursor16 ( ( ShortBuffer ) sourceBuffer , ( ShortBuffer ) destBuffer , offsetX , offsetY , width , height , transparentPixel ) ; break ; default : throw new UnsupportedOperationException ( ) ; } }
Creates a shifted version of the source cursor . Buffers must be ShortBuffers for a bit depth of 16 or IntBuffers for a bit depth of 32 .