bevy/examples/2d
Sjael 06ada2e93d Changed Msaa to Enum (#7292)
# Objective

Fixes #6931 

Continues #6954 by squashing `Msaa` to a flat enum

Helps out  #7215 

# Solution
```
pub enum Msaa {
    Off = 1,
    #[default]
    Sample4 = 4,
}
```

# Changelog

- Modified
    - `Msaa` is now enum
    - Defaults to 4 samples
    - Uses `.samples()` method to get the sample number as `u32`

# Migration Guide
```
let multi = Msaa { samples: 4 } 
// is now
let multi = Msaa::Sample4

multi.samples
// is now
multi.samples()
```



Co-authored-by: Sjael <jakeobrien44@gmail.com>
2023-01-20 14:25:21 +00:00
..
2d_shapes.rs Rename shapes examples for consistency (#6082) 2022-09-25 00:57:07 +00:00
mesh2d_manual.rs Changed Msaa to Enum (#7292) 2023-01-20 14:25:21 +00:00
mesh2d_vertex_color_texture.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
mesh2d.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
move_sprite.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
pixel_perfect.rs Add pixelated Bevy to assets and an example (#6408) 2022-11-14 22:15:46 +00:00
rotation.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
sprite_flipping.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
sprite_sheet.rs Sprite sheet example: specify animation indices (#6861) 2022-12-11 18:22:10 +00:00
sprite.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
text2d.rs Remove VerticalAlign from TextAlignment (#6807) 2023-01-18 02:19:17 +00:00
texture_atlas.rs asset: make HandleUntyped::id private (#7076) 2023-01-04 23:40:43 +00:00
transparency_2d.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00