Cleanup legacy code from bevy_sprite (#15304)
# Objective - Remove legacy stuff
This commit is contained in:
parent
fcfa60844a
commit
28597e4082
@ -10,7 +10,6 @@ use crate::TextureSlicer;
|
|||||||
/// This is commonly used as a component within [`SpriteBundle`](crate::bundle::SpriteBundle).
|
/// This is commonly used as a component within [`SpriteBundle`](crate::bundle::SpriteBundle).
|
||||||
#[derive(Component, Debug, Default, Clone, Reflect)]
|
#[derive(Component, Debug, Default, Clone, Reflect)]
|
||||||
#[reflect(Component, Default, Debug)]
|
#[reflect(Component, Default, Debug)]
|
||||||
#[repr(C)]
|
|
||||||
pub struct Sprite {
|
pub struct Sprite {
|
||||||
/// The sprite's color tint
|
/// The sprite's color tint
|
||||||
pub color: Color,
|
pub color: Color,
|
||||||
|
|||||||
@ -21,7 +21,6 @@ use bevy_utils::HashMap;
|
|||||||
#[derive(Asset, Reflect, Debug, Clone)]
|
#[derive(Asset, Reflect, Debug, Clone)]
|
||||||
#[reflect(Debug)]
|
#[reflect(Debug)]
|
||||||
pub struct TextureAtlasLayout {
|
pub struct TextureAtlasLayout {
|
||||||
// TODO: add support to Uniforms derive to write dimensions and sprites to the same buffer
|
|
||||||
pub size: UVec2,
|
pub size: UVec2,
|
||||||
/// The specific areas of the atlas where each texture can be found
|
/// The specific areas of the atlas where each texture can be found
|
||||||
pub textures: Vec<URect>,
|
pub textures: Vec<URect>,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user