bevy/crates/bevy_render/src
ira ea8f74692f Add with_a and friends to Color (#6899)
# Objective
```rust
// makes clippy complain about 'taking a mutable reference to a `const` item'
let color = *Color::RED.set_a(0.5);

// Now you can do
let color = Color::RED.with_a(0.5);
```

## Changelog
Added `with_r`, `with_g`, `with_b`, and `with_a` to `Color`.

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-12-11 18:34:16 +00:00
..
camera bevy_reflect: Register missing reflected types for bevy_render (#6725) 2022-11-23 00:41:21 +00:00
color Add with_a and friends to Color (#6899) 2022-12-11 18:34:16 +00:00
mesh Add cylinder shape (#6809) 2022-12-11 18:22:05 +00:00
primitives Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
render_graph Add try_* to add_slot_edge, add_node_edge (#6720) 2022-11-21 21:58:39 +00:00
render_phase Simplify trait hierarchy for SystemParam (#6865) 2022-12-11 18:34:14 +00:00
render_resource ShaderDefVal: add an UInt option (#6881) 2022-12-07 23:10:27 +00:00
renderer Add try_* to add_slot_edge, add_node_edge (#6720) 2022-11-21 21:58:39 +00:00
texture get pixel size from wgpu (#6820) 2022-12-11 18:22:07 +00:00
view bevy_reflect: Register missing reflected types for bevy_render (#6725) 2022-11-23 00:41:21 +00:00
extract_component.rs ExtractComponent output optional associated type (#6699) 2022-11-21 13:19:44 +00:00
extract_param.rs Simplify trait hierarchy for SystemParam (#6865) 2022-12-11 18:34:14 +00:00
extract_resource.rs Prepare for upcoming rustlang by fixing upcoming clippy warnings (#6376) 2022-10-26 19:15:15 +00:00
globals.rs bevy_reflect: Register missing reflected types for bevy_render (#6725) 2022-11-23 00:41:21 +00:00
lib.rs Lock down access to Entities (#6740) 2022-11-28 20:39:02 +00:00
rangefinder.rs Very minor doc formatting changes (#5287) 2022-07-12 13:06:16 +00:00
render_asset.rs Fix clippy::iter_with_drain (#6485) 2022-11-06 01:42:15 +00:00
settings.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
spatial_bundle.rs Add associated constant IDENTITY to Transform and friends. (#5340) 2022-08-30 22:10:24 +00:00