Struct rust_rpg_toolkit::render::sprite::Sprite [−][src]
pub struct Sprite {
pub offset: Vec2,
pub rotation: f32,
pub flip_x: bool,
pub flip_y: bool,
pub tile_size: UVec2,
pub texture_id: String,
pub normal_map_id: Option<String>,
pub texture_coords: UVec2,
}
Fields
offset: Vec2
rotation: f32
flip_x: bool
flip_y: bool
tile_size: UVec2
texture_id: String
normal_map_id: Option<String>
texture_coords: UVec2
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sprite
impl UnwindSafe for Sprite
Blanket Implementations
Mutably borrows from an owned value. Read more