rust/lib-hedgewars-engine/src/render/gear.rs
branchtransitional_engine
changeset 15954 9502611bffc1
parent 15918 8a6a2d931bae
equal deleted inserted replaced
15953:d46ad15c6dec 15954:9502611bffc1
    69 
    69 
    70     MaxSprite,
    70     MaxSprite,
    71 }
    71 }
    72 
    72 
    73 const SPRITE_LOAD_LIST: &[(SpriteId, &str)] = &[
    73 const SPRITE_LOAD_LIST: &[(SpriteId, &str)] = &[
    74     (
    74     (SpriteId::Mine, "Graphics/MineOn.png"),
    75         SpriteId::Mine,
    75     (SpriteId::Grenade, "Graphics/Bomb.png"),
    76         "Graphics/MineOn.png",
    76     (SpriteId::Cheese, "Graphics/cheese.png"),
    77     ),
    77     (SpriteId::Cleaver, "Graphics/cleaver.png"),
    78     (
       
    79         SpriteId::Grenade,
       
    80         "Graphics/Bomb.png",
       
    81     ),
       
    82     (
       
    83         SpriteId::Cheese,
       
    84         "Graphics/cheese.png",
       
    85     ),
       
    86     (
       
    87         SpriteId::Cleaver,
       
    88         "Graphics/cleaver.png",
       
    89     ),
       
    90 ];
    78 ];
    91 
    79 
    92 const MAX_SPRITES: usize = SpriteId::MaxSprite as usize + 1;
    80 const MAX_SPRITES: usize = SpriteId::MaxSprite as usize + 1;
    93 
    81 
    94 type SpriteTexCoords = (u32, [[f32; 2]; 4]);
    82 type SpriteTexCoords = (u32, [[f32; 2]; 4]);