Carter Anderson
1248a639ee
EnumVariantMeta derive ( #1972 )
...
There are cases where we want an enum variant name. Right now the only way to do that with rust's std is to derive Debug, but this will also print out the variant's fields. This creates the unfortunate situation where we need to manually write out each variant's string name (ex: in #1963 ), which is both boilerplate-ey and error-prone. Crates such as `strum` exist for this reason, but it includes a lot of code and complexity that we don't need.
This adds a dead-simple `EnumVariantMeta` derive that exposes `enum_variant_index` and `enum_variant_name` functions. This allows us to make cases like #1963 much cleaner (see the second commit). We might also be able to reuse this logic for `bevy_reflect` enum derives.
2021-04-21 23:46:54 +00:00
Carter Anderson
b17f8a4bce
format comments ( #1612 )
...
Uses the new unstable comment formatting features added to rustfmt.toml.
2021-03-11 00:27:30 +00:00
Carter Anderson
72b2fc9843
Bevy Reflection ( #926 )
...
Bevy Reflection
2020-11-27 16:39:59 -08:00
Carter Anderson
1eff53462a
cross-platform main function ( #847 )
2020-11-12 13:26:48 -08:00
Julian Heinken
4645da30c8
Mesh overhaul with custom vertex attributes #592 ( #599 )
...
Mesh overhaul with custom vertex attributes
2020-10-30 19:21:53 -07:00
Carter Anderson
c32e637384
Asset system rework and GLTF scene loading ( #693 )
2020-10-18 13:48:15 -07:00
Carter Anderson
3d09459813
add more doc comments and clean up some public exports
2020-08-09 16:13:04 -07:00
Carter Anderson
f963cd41dc
app: rename AppPlugin to Plugin
2020-08-07 20:22:17 -07:00
Carter Anderson
50335e21e2
derive: allow manually forcing modules to "crate", which prevents the need for ambiguous crates
...
this fixes a failing doc test
2020-07-14 16:16:01 -07:00
Carter Anderson
2508a59f68
remove darling
2020-07-10 02:53:31 -07:00
Carter Anderson
92c44320ee
ecs: rename EntityArchetype to ComponentSet
2020-06-25 11:21:56 -07:00
Carter Anderson
e855995145
cargo fmt
2020-06-15 12:47:35 -07:00
Carter Anderson
be23f119d5
remove old uniform system
2020-06-07 22:32:55 -07:00
Carter Anderson
62c434274f
shader_defs: new leaner shader defs. they are now separate from uniforms
2020-06-07 22:24:53 -07:00
Carter Anderson
fd8f87400d
add RenderResources/RenderResource traits to replace Uniforms/Uniform
2020-06-07 19:12:41 -07:00
Carter Anderson
d0298a4f89
split AsVertexBufferDescriptor out from Uniforms
2020-06-07 13:00:58 -07:00
Carter Anderson
70e9892e00
remove bevy_derive from bevy crate and export derives from specific crates
2020-06-07 12:22:16 -07:00
Carter Anderson
6eea96366d
cargo fmt
2020-06-03 20:08:20 -07:00
Carter Anderson
8c196139d4
derive: break up derive crate into modules
2020-06-03 13:04:09 -07:00
Carter Anderson
7019ff015b
improve "derive uniforms" clarity
2020-06-03 12:54:02 -07:00
Carter Anderson
13d56907ed
sprite: more sprite sheet work (not quite operable yet)
2020-06-03 11:39:10 -07:00
Carter Anderson
d5d0107ada
bytes: remove AsBytes in favor of Bytes
2020-06-01 14:33:00 -07:00
Carter Anderson
3ee5a67cdb
scenes: polish scene example. prop->property attribute. derive(Resources) to derive(FromResources)
2020-05-27 15:57:12 -07:00
Carter Anderson
d3e0196cbb
move derive(Properties) into bevy_properties
2020-05-24 11:01:48 -07:00
Carter Anderson
f36a67ee96
props: support nesting
2020-05-23 12:26:13 -07:00
Carter Anderson
159acf52af
props: rename prop/props to property/properties
...
its longer but a bit clearer
2020-05-22 15:36:48 -07:00
Carter Anderson
da8daa051b
props: derive, get/set, example
2020-05-21 23:58:11 -07:00
Carter Anderson
c5a78d4616
TextureCopy render graph node, texture_resource_system
...
Removed textures are now freed
2020-05-18 11:31:11 -07:00
Carter Anderson
c5ca59dc4d
cargo fmt
2020-05-05 18:44:32 -07:00
Carter Anderson
05dbf31fd1
derive struct as uniform
2020-05-03 17:54:16 -07:00
Carter Anderson
45a1f0515f
use immutable reference in FromResources
2020-04-30 23:59:05 -07:00
Carter Anderson
3e3ab92ff5
cargo fmt
2020-04-30 22:30:51 -07:00
Carter Anderson
98f9639050
FromResource and derive macro
2020-04-30 13:26:01 -07:00
Carter Anderson
057ad97a46
fix dynamic plugin example
2020-04-24 18:23:37 -07:00
Carter Anderson
87066cafd3
move bevy crates to their own folder
2020-04-24 17:57:20 -07:00