pub struct TilesEmitter {
pub transform: Transform<f32, f32, f32>,
pub tile_size: Vec2<f32>,
pub screen_space: bool,
}
Fields§
§transform: Transform<f32, f32, f32>
§tile_size: Vec2<f32>
§screen_space: bool
Implementations§
Source§impl TilesEmitter
impl TilesEmitter
pub fn transform(self, value: Transform<f32, f32, f32>) -> Self
pub fn position(self, value: Vec2<f32>) -> Self
pub fn orientation(self, value: Quaternion<f32>) -> Self
pub fn rotation(self, angle_radians: f32) -> Self
pub fn scale(self, value: Vec2<f32>) -> Self
pub fn tile_size(self, value: Vec2<f32>) -> Self
pub fn screen_space(self, value: bool) -> Self
pub fn emit<'a, I: IntoIterator<Item = TileInstance>>( &'a self, set: &'a TileSet, instances: I, ) -> TilesDraw<'_, I>
Trait Implementations§
Source§impl Clone for TilesEmitter
impl Clone for TilesEmitter
Source§fn clone(&self) -> TilesEmitter
fn clone(&self) -> TilesEmitter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TilesEmitter
impl Debug for TilesEmitter
Source§impl Default for TilesEmitter
impl Default for TilesEmitter
Source§fn default() -> TilesEmitter
fn default() -> TilesEmitter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TilesEmitter
impl RefUnwindSafe for TilesEmitter
impl Send for TilesEmitter
impl Sync for TilesEmitter
impl Unpin for TilesEmitter
impl UnwindSafe for TilesEmitter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more