equal
deleted
inserted
replaced
1312 /** Masks needed for sprite operations. |
1312 /** Masks needed for sprite operations. |
1313 * @note Do not modify this enum. Alter SpriteSetup instead |
1313 * @note Do not modify this enum. Alter SpriteSetup instead |
1314 * @see SpriteSetup */ |
1314 * @see SpriteSetup */ |
1315 enum SpriteMasks { |
1315 enum SpriteMasks { |
1316 ///Maximum number of sprites that can be loaded at a given time. |
1316 ///Maximum number of sprites that can be loaded at a given time. |
1317 MAX_SPRITES = (1 << SPRITE_WIDTH) - 1, |
1317 MAX_SPRITES = 1 << SPRITE_WIDTH, |
1318 ///The mask to for the main sprite |
1318 ///The mask to for the main sprite |
1319 SPRITE_MASK = MAX_SPRITES, |
1319 SPRITE_MASK = MAX_SPRITES - 1, |
1320 ///The mask for the auxiliary sprite (the one that takes care of recoloring) |
1320 ///The mask for the auxiliary sprite (the one that takes care of recoloring) |
1321 PALETTE_SPRITE_MASK = ((1 << PALETTE_SPRITE_WIDTH) - 1) << PALETTE_SPRITE_START, |
1321 PALETTE_SPRITE_MASK = ((1 << PALETTE_SPRITE_WIDTH) - 1) << PALETTE_SPRITE_START, |
1322 ///Mask for the auxiliary sprites if it is locate in the LSBs |
1322 ///Mask for the auxiliary sprites if it is locate in the LSBs |
1323 COLORTABLE_MASK = (1 << PALETTE_SPRITE_WIDTH) - 1 |
1323 COLORTABLE_MASK = (1 << PALETTE_SPRITE_WIDTH) - 1 |
1324 }; |
1324 }; |