Struct three::Sprite
[−]
[src]
pub struct Sprite { /* fields omitted */ }
Two-dimensional bitmap that is integrated into a larger scene.
Methods
impl Sprite
[src]
fn set_texel_range<P, S>(&mut self, base: P, size: S) where
P: Into<Point2<i16>>,
S: Into<Vector2<u16>>,
P: Into<Point2<i16>>,
S: Into<Vector2<u16>>,
Set area of the texture to render. It can be used in sequential animations.
Methods from Deref<Target = Object>
fn set_visible(&mut self, visible: bool)
Invisible objects are not rendered by cameras.
fn look_at<P>(&mut self, eye: P, target: P, up: Option<Vector3<f32>>) where
P: Into<[f32; 3]>,
P: Into<[f32; 3]>,
Rotates object in the specific direction of target
.
fn set_transform<P, Q>(&mut self, pos: P, rot: Q, scale: f32) where
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
Set both position, orientation and scale.
fn set_position<P>(&mut self, pos: P) where
P: Into<Point3<f32>>,
P: Into<Point3<f32>>,
Set position.
fn set_orientation<Q>(&mut self, rot: Q) where
Q: Into<Quaternion<f32>>,
Q: Into<Quaternion<f32>>,
Set orientation.
fn set_scale(&mut self, scale: f32)
Set scale.
fn sync(&mut self, scene: &Scene) -> NodeInfo
Get actual information about itself from the scene
.
Panics
Panics if scene
doesn't have this Object
.
Trait Implementations
impl AsRef<NodePointer> for Sprite
[src]
fn as_ref(&self) -> &NodePointer
Performs the conversion.
impl Deref for Sprite
[src]
type Target = Object
The resulting type after dereferencing
fn deref(&self) -> &Object
The method called to dereference a value