Esempio n. 1
0
        public static Cursor CreateCursor(Image image, int xHotspot, int yHotspot)
        {
            unsafe
            {
                fixed(byte *data = image.data)
                {
                    NativeImage  nimg   = new NativeImage(image.width, image.height, data);
                    NativeImage *ptr    = &nimg;
                    var          result = glfwCreateCursor(ptr, xHotspot, yHotspot);

                    CheckError();
                    return(result);
                }
            }
        }
Esempio n. 2
0
 public static extern void glfwSetWindowIcon(WindowPtr window, int count, NativeImage *images);
Esempio n. 3
0
 public static extern Cursor glfwCreateCursor(NativeImage *image, int xHotspot, int yHotspot);