Crate bevy_neosprite

Source
Expand description

Provides 2D sprite rendering functionality.

Modules§

prelude

Structs§

ColorMaterialFlags
ColorMaterialUniform
The GPU representation of the uniform data of a [ColorMaterial].
DrawMesh2d
ExtractedPointLight
GpuLights
GpuPointLight
LightMeta
Material2dBindGroupId
Material2dKey
Material2dPipeline
Render pipeline data for a given Material2d
Material2dPlugin
Adds the necessary ECS resources and render logic to enable rendering entities using the given Material2d asset type (which includes Material2d types).
MaterialMesh2dBundle
A component bundle for entities with a Mesh2dHandle and a Material2d.
Mesh2d
Mesh2dBindGroup
Mesh2dHandle
Component for rendering with meshes in the 2d pipeline, usually with a 2d material such as ColorMaterial.
Mesh2dPipeline
Mesh2dPipelineKey
Mesh2dTransforms
Mesh2dUniform
Mesh2dUvRange
Component for restricting rendering of a material to a subset of the UV coordinates.
Mesh2dViewBindGroup
MeshFlags
NeoMaterial
A 2d material that renders 2d meshes with a texture tinted by a uniform color
NeoMaterialPlugin
NeoMesh2dRenderPlugin
NoWireframe2d
Disables wireframe rendering for any entity it is attached to. It will ignore the Wireframe2dConfig global setting.
PointLight2d
PointLight2dBundle
PreparedMaterial2d
Data prepared for a Material2d instance.
RenderMaterial2dInstances
RenderMesh2dInstance
RenderMesh2dInstances
SetMaterial2dBindGroup
SetMesh2dBindGroup
SetMesh2dViewBindGroup
Sprite2d
SpritePlugin
Adds support for 2D sprite rendering.
ViewLightEntities
ViewLightsUniformOffset
Wireframe2d
Enables wireframe rendering for any entity it is attached to. It will ignore the Wireframe2dConfig global setting.
Wireframe2dColor
Sets the color of the Wireframe2d of the entity it is attached to. If this component is present but there’s no Wireframe2d component, it will still affect the color of the wireframe when Wireframe2dConfig::global is set to true.
Wireframe2dConfig
Wireframe2dMaterial
Wireframe2dPlugin
A Plugin that draws wireframes for 2D meshes.

Enums§

SpriteSystem
System set for sprite rendering.

Constants§

COLOR_MATERIAL_SHADER_HANDLE
MAX_POINT_LIGHTS
MESH2D_BINDINGS_HANDLE
MESH2D_FUNCTIONS_HANDLE
MESH2D_SHADER_HANDLE
MESH2D_TYPES_HANDLE
MESH2D_VERTEX_OUTPUT
MESH2D_VIEW_BINDINGS_HANDLE
MESH2D_VIEW_TYPES_HANDLE
SPRITE_SHADER_HANDLE
SPRITE_VIEW_BINDINGS_SHADER_HANDLE
WIREFRAME_2D_SHADER_HANDLE

Traits§

Material2d
Materials are used alongside Material2dPlugin and MaterialMesh2dBundle to spawn entities that are rendered with a specific Material2d type. They serve as an easy to use high level way to render Mesh2dHandle entities with custom shader logic.

Functions§

calculate_bounds_2d
System calculating and inserting an Aabb component to entities with either:
extract_lights
extract_mesh2d
prepare_lights
prepare_mesh2d_bind_group
prepare_mesh2d_view_bind_groups
queue_material2d_meshes
tonemapping_pipeline_key
update_sprite_2d_uv_ranges

Type Aliases§

NeoMesh2dBundle
A component bundle for entities with a Mesh2dHandle and a [ColorMaterial].
WithMesh2d
A convenient alias for With<Mesh2dHandle>>, for use with [bevy_render::view::VisibleEntities].