Esempio n. 1
0
        public Cursor(CursorResource res)
        {
            HotSpotX = res.HotSpotX;
            HotSpotY = res.HotSpotY;

            Texture = WWTexture.FromCursorResource(res);
        }
Esempio n. 2
0
 public CursorPreset(
     CursorResource normal,
     CursorResource offset1,
     CursorResource offset2,
     CursorResource reloading)
 {
     this.Normal    = normal;
     this.Offset1   = offset1;
     this.Offset2   = offset2;
     this.Reloading = reloading;
 }
Esempio n. 3
0
 public static void Dump(CursorResource rc)
 {
     Console.WriteLine(" Cursor {0}: {1} ({2} byte(s)), hotspot @ {3}:{4}",
                       rc.Header.nID, rc.ToString(), rc.ImageSize, rc.HotspotX, rc.HotspotY);
 }
Esempio n. 4
0
 internal static WWTexture FromCursorResource(CursorResource res)
 {
     return(FromRawData(res.width, res.height, res.image_data));
 }