MCPcopy Create free account

hub / github.com/Weasy666/bevy_svg / functions

Functions71 in github.com/Weasy666/bevy_svg

↓ 20 callersMethodload
( &self, reader: &mut dyn Reader, _settings: &(), load_context: &mut LoadConte
src/loader.rs:19
↓ 12 callersMethodconvert
(self)
src/svg.rs:403
↓ 4 callersFunctionavg_gradient
(gradient: &BaseGradient)
src/util.rs:20
↓ 3 callersMethodcompute_translation
Computes the translation for an origin. The resulting translation needs to be added to the translation of the SVG.
src/origin.rs:46
↓ 3 callersMethodtessellate
Creates a bevy mesh from the SVG data.
src/svg.rs:88
↓ 3 callersMethodto_f32_array
(&self)
src/util.rs:12
↓ 2 callersMethodprocess_vertex
(&self, point: Point)
src/render/vertex_buffer.rs:73
↓ 1 callersMethodextend_one
(&mut self, item: VertexBuffers)
src/render/vertex_buffer.rs:107
↓ 1 callersFunctionflip_mesh_vertically
(mesh: &mut Mesh)
src/render/vertex_buffer.rs:30
↓ 1 callersFunctiongenerate_buffer
( svg: &Svg, fill_tess: &mut FillTessellator, stroke_tess: &mut StrokeTessellator, )
src/render/tessellation.rs:9
↓ 1 callersMethodnext
(&mut self)
src/svg.rs:306
Functionadd_origin_state
Checkes if a "new" SVG bundle was added by looking for a missing `OriginState` and then adds it to the entity.
src/origin.rs:86
Functionapply_origin
Gets all SVGs with a changed origin or transform and checks if the origin offset needs to be applied.
src/origin.rs:108
Methodbuild
(&self, app: &mut App)
src/plugin.rs:49
Methodbuild
(&self, app: &mut App)
src/lib.rs:56
Methodbuild
(&self, app: &mut App)
src/render/plugin.rs:13
Methodbuild
(&self, app: &mut App)
src/render/svg2d/plugin.rs:13
Methodbuild
(&self, app: &mut App)
src/render/svg3d/plugin.rs:16
Methodbuild
(&self, app: &mut App)
examples/common/lib.rs:15
Functioncamera_pan_system
( input: Res<ButtonInput<KeyCode>>, mut camera: Query<Mut<Transform>, With<Camera>>, )
examples/common/lib.rs:310
Functioncamera_zoom_system
( mut evr_scroll: MessageReader<MouseWheel>, mut camera: Query<(Option<Mut<Projection>>, Mut<Transform
examples/common/lib.rs:284
Methodconvert
(self)
src/render/vertex_buffer.rs:42
Methoddefault
()
src/svg.rs:41
Methoddefault
()
examples/common/lib.rs:144
Methodextend
(&mut self, iter: T)
src/render/vertex_buffer.rs:118
Methodextensions
(&self)
src/loader.rs:60
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/loader.rs:84
Functionfps_text_update_system
( diagnostics: Res<DiagnosticsStore>, mut fps_values: Local<FpsValues>, mut query: ParamSet<(
examples/common/lib.rs:207
Methodfragment_shader
()
src/render/svg2d/plugin.rs:22
Methodfragment_shader
()
src/render/svg3d/plugin.rs:25
Methodfrom_bytes
Loads an SVG from bytes
src/svg.rs:59
Methodfrom_tree
(tree: usvg::Tree)
src/svg.rs:97
Functionkeyboard_input_system
This system toggles SVG visibility when 'V' is pressed and toggles through origin when 'O' is pressed.
examples/common/lib.rs:78
Functionmain
()
examples/2d/origin_check.rs:7
Functionmain
()
examples/2d/complex_one_color.rs:7
Functionmain
()
examples/2d/multiple_translation.rs:7
Functionmain
()
examples/2d/two_colors.rs:7
Functionmain
()
examples/2d/preloading.rs:8
Functionmain
()
examples/2d/twinkle.rs:7
Functionmain
()
examples/3d/origin_check.rs:7
Functionmain
()
examples/3d/complex_one_color.rs:7
Functionmain
()
examples/3d/multiple_translation.rs:7
Functionmain
()
examples/3d/multiple_perspective.rs:7
Functionmain
()
examples/3d/two_colors.rs:7
Functionmain
()
examples/3d/twinkle.rs:7
Methodnew_vertex
(&mut self, vertex: FillVertex)
src/render/vertex_buffer.rs:88
Functionorigin_text_update_system
( mut text_query: Query<&mut TextSpan, With<OriginText>>, query: Query<&Origin>, )
examples/common/lib.rs:273
Methodprocess_fill
(descriptors: &mut Vec<PathDescriptor>, path_with_transform: PathWithTransform)
src/svg.rs:215
Methodprocess_stroke
( descriptors: &mut Vec<PathDescriptor>, path_with_transform: PathWithTransform, )
src/svg.rs:251
Functionrun
(mut commands: Commands, asset_server: Res<AssetServer>, mut fsm: Local<TutorialFsm>)
examples/2d/preloading.rs:37
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/2d/origin_check.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/2d/complex_one_color.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/2d/multiple_translation.rs:23
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/2d/two_colors.rs:22
Functionsetup
(mut commands: Commands)
examples/2d/preloading.rs:24
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/2d/twinkle.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/origin_check.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/complex_one_color.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/multiple_translation.rs:23
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/multiple_perspective.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/two_colors.rs:22
Functionsetup
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/3d/twinkle.rs:22
Functionsetup_fps_counter
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/common/lib.rs:152
Functionsetup_legend
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/common/lib.rs:34
Functionsetup_origin_text
(mut commands: Commands, asset_server: Res<AssetServer>)
examples/common/lib.rs:247
Methodspecialize
( _pipeline: &MaterialPipeline, descriptor: &mut RenderPipelineDescriptor, _layout: &M
src/render/svg3d/plugin.rs:29
Functionsvg_2d_on_insert
(mut world: DeferredWorld, ctx: HookContext)
src/render/svg2d/mod.rs:24
Functionsvg_3d_on_insert
(mut world: DeferredWorld, ctx: HookContext)
src/render/svg3d/mod.rs:25
Functionsvg_mesh_linker
Bevy system which queries for all [`Svg`] bundles and adds the correct [`Mesh`] to them.
src/plugin.rs:82
Functionsvg_movement
( time: Res<Time>, mut svg_position: Query<(&mut Direction, &mut Transform), With<Svg2d>>, )
examples/2d/multiple_translation.rs:47
Functionsvg_movement
( time: Res<Time>, mut svg_position: Query<(&mut Direction, &mut Transform), With<Svg3d>>, )
examples/3d/multiple_translation.rs:54