Struct e2rcore::implement::render::camera::Cam
[−]
[src]
pub struct Cam {
pub _id: u64,
pub _proj_xform: Mat4<f32>,
pub _fov: f32,
pub _aspect: f32,
pub _near: f32,
pub _far: f32,
pub _view_xform: Mat4<f32>,
pub _pos: Mat3x1<f32>,
pub _up: Mat3x1<f32>,
pub _focus: Mat3x1<f32>,
}Fields
_id: u64
_proj_xform: Mat4<f32>
_fov: f32
_aspect: f32
_near: f32
_far: f32
_view_xform: Mat4<f32>
_pos: Mat3x1<f32>
_up: Mat3x1<f32>
_focus: Mat3x1<f32>
Methods
impl Cam[src]
fn init(
id: u64,
fov: f32,
aspect: f32,
near: f32,
far: f32,
pos: Mat3x1<f32>,
focus: Mat3x1<f32>,
up: Mat3x1<f32>
) -> Cam[src]
id: u64,
fov: f32,
aspect: f32,
near: f32,
far: f32,
pos: Mat3x1<f32>,
focus: Mat3x1<f32>,
up: Mat3x1<f32>
) -> Cam
Trait Implementations
impl Clone for Cam[src]
fn clone(&self) -> Cam[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl IObjImpl for Cam[src]
fn as_any(&self) -> &Any[src]
fn update_components(
&mut self,
components: &mut Vec<Box<IComponent>>
) -> Result<(), &'static str>[src]
&mut self,
components: &mut Vec<Box<IComponent>>
) -> Result<(), &'static str>