public class CursorLoader
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static CursorLoader | get()Retrieve the single instance of this loader - convinient huh? | 
| org.lwjgl.input.Cursor | getAnimatedCursor(java.lang.String ref,
                 int x,
                 int y,
                 int width,
                 int height,
                 int[] cursorDelays)Get a cursor based on a image reference on the classpath. | 
| org.lwjgl.input.Cursor | getCursor(java.nio.ByteBuffer buf,
         int x,
         int y,
         int width,
         int height)Get a cursor based on a set of image data | 
| org.lwjgl.input.Cursor | getCursor(ImageData imageData,
         int x,
         int y)Get a cursor based on a set of image data | 
| org.lwjgl.input.Cursor | getCursor(java.lang.String ref,
         int x,
         int y)Get a cursor based on a image reference on the classpath | 
public static CursorLoader get()
public org.lwjgl.input.Cursor getCursor(java.lang.String ref,
                                        int x,
                                        int y)
                                 throws java.io.IOException,
                                        org.lwjgl.LWJGLException
ref - The reference to the image to be loadedx - The x-coordinate of the cursor hotspot (left to right)y - The y-coordinate of the cursor hotspot (bottom to top)java.io.IOException - Indicates a failure to load the imageorg.lwjgl.LWJGLException - Indicates a failure to create the hardware cursorpublic org.lwjgl.input.Cursor getCursor(java.nio.ByteBuffer buf,
                                        int x,
                                        int y,
                                        int width,
                                        int height)
                                 throws java.io.IOException,
                                        org.lwjgl.LWJGLException
buf - The image data (stored in RGBA) to load the cursor fromx - The x-coordinate of the cursor hotspot (left to right)y - The y-coordinate of the cursor hotspot (bottom to top)width - The width of the image data providedheight - The height of the image data providedjava.io.IOException - Indicates a failure to load the imageorg.lwjgl.LWJGLException - Indicates a failure to create the hardware cursorpublic org.lwjgl.input.Cursor getCursor(ImageData imageData, int x, int y) throws java.io.IOException, org.lwjgl.LWJGLException
imageData - The data from which the cursor can read it's contentsx - The x-coordinate of the cursor hotspot (left to right)y - The y-coordinate of the cursor hotspot (bottom to top)java.io.IOException - Indicates a failure to load the imageorg.lwjgl.LWJGLException - Indicates a failure to create the hardware cursorpublic org.lwjgl.input.Cursor getAnimatedCursor(java.lang.String ref,
                                                int x,
                                                int y,
                                                int width,
                                                int height,
                                                int[] cursorDelays)
                                         throws java.io.IOException,
                                                org.lwjgl.LWJGLException
ref - The reference to the image to be loadedx - The x-coordinate of the cursor hotspot (left to right)y - The y-coordinate of the cursor hotspot (bottom to top)width - The x width of the cursorheight - The y height of the cursorcursorDelays - image delays between changing frames in animationjava.io.IOException - Indicates a failure to load the imageorg.lwjgl.LWJGLException - Indicates a failure to create the hardware cursor