Add a bevy-texture example based on wgpu-texture (#4360)
* Add a bevy-texture example based on wgpu-texture * Use git branch of Blitz * Update existing code to new blitz * Use Device from Dioxus for bevy * Use ManualTextureView Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix texture size on window resize * Clean code * Rename example to 'bevy-example' in 'bevy' directory * Upgrade to blitz 0.1.0-alpha.5 and anyrender 0.4 * Install alsa in CI Signed-off-by: Nico Burns <nico@nicoburns.com> * Add libudev to CI Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com> Co-authored-by: Jerome Caucat <jerome.caucat@smartshape.com> Co-authored-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
14 files changed
+2426
-79
No files matched your search
@@ -21,13 +21,13 @@ autofocus = []
|
||||
|
||||
[dependencies]
|
||||
# Blitz dependencies
|
||||
anyrender = { version = "0.3", default-features = false }
|
||||
anyrender_vello = { version = "0.3", default-features = false }
|
||||
blitz-dom = { version = "=0.1.0-alpha.4", default-features = false }
|
||||
blitz-net = { version = "=0.1.0-alpha.4", optional = true }
|
||||
blitz-paint = { version = "=0.1.0-alpha.4", optional = true }
|
||||
blitz-traits = { version = "=0.1.0-alpha.4" }
|
||||
blitz-shell = { version = "=0.1.0-alpha.4", default-features = false }
|
||||
anyrender = { version = "0.4", default-features = false }
|
||||
anyrender_vello = { version = "0.4", default-features = false }
|
||||
blitz-dom = { version = "=0.1.0-alpha.5", default-features = false }
|
||||
blitz-net = { version = "=0.1.0-alpha.5", optional = true }
|
||||
blitz-paint = { version = "=0.1.0-alpha.5", optional = true }
|
||||
blitz-traits = { version = "=0.1.0-alpha.5" }
|
||||
blitz-shell = { version = "=0.1.0-alpha.5", default-features = false }
|
||||
|
||||
# DioxusLabs dependencies
|
||||
dioxus-core = { workspace = true }
|
||||
|
||||
@@ -8,7 +8,9 @@ use blitz_dom::{
|
||||
net::Resource, BaseDocument, Document, EventDriver, EventHandler, Node, DEFAULT_CSS,
|
||||
};
|
||||
use blitz_traits::{
|
||||
events::UiEvent, net::NetProvider, ColorScheme, DomEvent, DomEventData, EventState, Viewport,
|
||||
events::{DomEvent, DomEventData, EventState, UiEvent},
|
||||
net::NetProvider,
|
||||
shell::{ColorScheme, Viewport},
|
||||
};
|
||||
|
||||
use dioxus_core::{ElementId, Event, VirtualDom};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use blitz_traits::{BlitzKeyEvent, BlitzMouseButtonEvent, MouseEventButton};
|
||||
use blitz_traits::events::{BlitzKeyEvent, BlitzMouseButtonEvent, MouseEventButton};
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
|
||||
input_data::{MouseButton, MouseButtonSet},
|
||||
|
||||
@@ -17,7 +17,9 @@ mod dioxus_renderer;
|
||||
mod events;
|
||||
mod mutation_writer;
|
||||
|
||||
pub use anyrender_vello::{CustomPaintCtx, CustomPaintSource, TextureHandle};
|
||||
pub use anyrender_vello::{
|
||||
wgpu_context::DeviceHandle, CustomPaintCtx, CustomPaintSource, TextureHandle,
|
||||
};
|
||||
use assets::DioxusNativeNetProvider;
|
||||
use blitz_dom::{ns, LocalName, Namespace, QualName};
|
||||
pub use dioxus_application::{DioxusNativeApplication, DioxusNativeEvent};
|
||||
|
||||
Reference in new issue
Block a user