Commit graph

886 commits

Author SHA1 Message Date
Carter Anderson
543ec86530 remove cargo.toml opt level override 2020-07-28 12:09:18 -07:00
Carter Anderson
3d2a4f6c39 ui: combine Click and Hover into Interaction 2020-07-28 01:20:19 -07:00
Carter Anderson
4a8c6c335a ui: feed computed image size into bevy_ui flex 2020-07-28 00:37:25 -07:00
Carter Anderson
cf9501a50e ui: feed computed text position into bevy_ui flex
and remove TextAlign because it is now redundant
2020-07-27 21:04:04 -07:00
Carter Anderson
1f006c348d ui: fix examples, flip fix stretch axis incompatibility, ergonomics 2020-07-27 19:13:11 -07:00
Carter Anderson
3d5e7e54f3 ui: create bevy types for flex style 2020-07-27 16:54:36 -07:00
Carter Anderson
e7b22ac043
Merge pull request #77 from Moxinilian/despawn-recursive
transform: implement hierarchical entity despawn
2020-07-27 15:35:23 -07:00
Moxinilian
3007201eac transform: improve despawn_recursive tests 2020-07-28 00:23:59 +02:00
Carter Anderson
6a0c2d5673
Merge pull request #75 from karroffel/hdr-loading
add more image loaders (HDR, JPEG, BMP) via `image` crate
2020-07-27 15:13:56 -07:00
Moxinilian
311f04f858 transform: implement hierarchical entity despawn 2020-07-28 00:10:32 +02:00
Thomas Herzog
23149f1753 add texture loader for more formats using image crate
This adds support for PNG images only for now. More formats can be added
relatively easily.
Images with various pixel formats are supported (such as RGB-16bit or
R-8bit).
2020-07-27 23:30:31 +02:00
Thomas Herzog
7412b0ec25 add HDR image loader
Using the `image` crate, HDR images can be loaded into RGBA-f32 textures.
2020-07-27 11:37:45 +02:00
Carter Anderson
fb9f04ba90
Merge pull request #73 from Moxinilian/windows-winit-panic
winit: fix panic on windows
2020-07-26 13:15:56 -07:00
Carter Anderson
718f475160
Merge pull request #72 from karroffel/texture-format
add `TextureFormat` field to `Texture`
2020-07-26 13:14:53 -07:00
Thomas Herzog
4cf0f53eae use TextureFormat for Textures
This commit also inserts debug asserts that texture data roughly respects
the format.
2020-07-26 22:08:15 +02:00
Moxinilian
4393af5e25 winit: fix panic on windows 2020-07-26 21:36:01 +02:00
Thomas Herzog
b4c185eb0c cargo fmt 2020-07-26 21:10:18 +02:00
Carter Anderson
339e9ad52d ui: cleaner stretch integration 2020-07-25 13:14:36 -07:00
Carter Anderson
93bb1d5b8e ui: initial flexbox support 2020-07-24 23:04:45 -07:00
Carter Anderson
bcf95a24db transform: only update global transform with pos/rot/scale components when there is no local transform 2020-07-23 18:55:21 -07:00
Carter Anderson
6cad80d572 transform|ui: fix transform update lag 2020-07-23 18:26:08 -07:00
Carter Anderson
d79339ea62 transform: add more control parent/child ordering and make parent/children insertion atomic 2020-07-23 17:32:53 -07:00
Carter Anderson
89af5ea4e0 fix some doc tests 2020-07-23 13:40:07 -07:00
Carter Anderson
70b12452b5 github actions: install alsa 2020-07-23 13:18:23 -07:00
Carter Anderson
85bd0342d4 ecs: add write_world and write_resources to Commands
this allows for custom commands
2020-07-23 13:12:38 -07:00
Carter Anderson
1c976ea5b8 update readme 2020-07-22 19:07:28 -07:00
Carter Anderson
f82af10a69 ecs: component removal tracking 2020-07-22 17:57:13 -07:00
Carter Anderson
141044aae7 ecs: publicly expose Added/Changed and inline some things 2020-07-22 16:19:27 -07:00
Carter Anderson
a4e291d9c8 app: default app runner now runs the schedule once 2020-07-22 13:32:17 -07:00
Carter Anderson
2d829f5a06 ecs: add Changed<T> (added or modified) 2020-07-22 13:20:22 -07:00
Carter Anderson
e673faab7c ecs: rename Changed<T> to Mutated<T> 2020-07-22 12:42:12 -07:00
Carter Anderson
19d24e92aa transform: immediately set localltransform value 2020-07-21 22:02:18 -07:00
Carter Anderson
ae30175e18 ecs: fix query.get::<T>() access 2020-07-21 22:00:55 -07:00
Carter Anderson
a6953049fb ecs: Added<T> queries 2020-07-21 22:00:11 -07:00
Carter Anderson
21cdaaf7eb ecs: inline a few things 2020-07-21 20:15:16 -07:00
Carter Anderson
0c2e26ddde Revert "ecs: remove &mut requirement on query iterators"
This reverts commit 6dc1d07cbc.
2020-07-21 20:12:15 -07:00
Carter Anderson
6dc1d07cbc ecs: remove &mut requirement on query iterators 2020-07-20 13:59:51 -07:00
Carter Anderson
6194944153 transform: apply LocalTransforms to root Transforms 2020-07-20 11:59:02 -07:00
Carter Anderson
009141d453 window: customizable default descriptor 2020-07-20 02:05:56 -07:00
Carter Anderson
b1162f0c29 ecs: fix resource scheduler test 2020-07-20 01:51:06 -07:00
Carter Anderson
b799ddc006 more interesting spawner perspective 2020-07-20 01:35:23 -07:00
Carter Anderson
b5d3f7e794 use right handed coordinate system in 3d 2020-07-20 01:33:30 -07:00
Carter Anderson
bd227859eb ui: only allow one thing to be hovered at a time 2020-07-19 20:52:15 -07:00
Carter Anderson
d8b3d078b4 core: add Labels 2020-07-19 20:34:04 -07:00
Carter Anderson
9a236f4923 ui: remove translation/rotation/scale components (Node serves the same role) 2020-07-19 20:33:55 -07:00
Carter Anderson
726eb37198 use rh coordinate system in 2d
z = 0 is now "farthest back" and z=1000 "farthest forward"
2020-07-19 17:00:08 -07:00
Carter Anderson
cadbb4c1b0 render: fix "next swap chain texture" bug 2020-07-19 16:15:19 -07:00
Carter Anderson
946d5d1024 ecs: refactor resources
fixes unintialized global resource memory
2020-07-19 14:23:06 -07:00
Carter Anderson
2ec530da8c ui: fix right alignment 2020-07-18 17:05:22 -07:00
Carter Anderson
6db82714dc ui: text alignment and more complete button example event handling 2020-07-18 17:03:37 -07:00