[−][src]Struct kiss3d::camera::FixedView
A camera that cannot move.
Methods
impl FixedView
[src]
pub fn new() -> FixedView
[src]
Create a new static camera.
pub fn new_with_frustrum(fov: f32, znear: f32, zfar: f32) -> FixedView
[src]
Creates a new arc ball camera with default sensitivity values.
Trait Implementations
impl Camera for FixedView
[src]
fn clip_planes(&self) -> (f32, f32)
[src]
fn view_transform(&self) -> Isometry3<f32>
[src]
fn eye(&self) -> Point3<f32>
[src]
fn handle_event(&mut self, _: &Canvas, event: &WindowEvent)
[src]
fn upload(
&self,
_: usize,
proj: &mut ShaderUniform<Matrix4<f32>>,
view: &mut ShaderUniform<Matrix4<f32>>
)
[src]
&self,
_: usize,
proj: &mut ShaderUniform<Matrix4<f32>>,
view: &mut ShaderUniform<Matrix4<f32>>
)
fn transformation(&self) -> Matrix4<f32>
[src]
fn inverse_transformation(&self) -> Matrix4<f32>
[src]
fn update(&mut self, _: &Canvas)
[src]
fn num_passes(&self) -> usize
[src]
The number of passes required by this camera.
fn start_pass(&self, _pass: usize, _canvas: &Canvas)
[src]
Indicates that a pass will begin.
fn render_complete(&self, _canvas: &Canvas)
[src]
Indicates that the scene has been rendered and the post-processing is being run.
fn project(
&self,
world_coord: &Point3<f32>,
size: &Vector2<f32>
) -> Vector2<f32>
[src]
&self,
world_coord: &Point3<f32>,
size: &Vector2<f32>
) -> Vector2<f32>
Converts a 3d point to 2d screen coordinates, assuming the screen has the size size
.
fn unproject(
&self,
window_coord: &Point2<f32>,
size: &Vector2<f32>
) -> (Point3<f32>, Vector3<f32>)
[src]
&self,
window_coord: &Point2<f32>,
size: &Vector2<f32>
) -> (Point3<f32>, Vector3<f32>)
Converts a point in 2d screen coordinates to a ray (a 3d position and a direction). Read more
impl Clone for FixedView
[src]
fn clone(&self) -> FixedView
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FixedView
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Downcast for T where
T: Any,
T: Any,