Enum amethyst_renderer::CameraPrefab [−][src]
pub enum CameraPrefab {
Orthographic(Ortho<f32>),
Perspective(PerspectiveFov<f32>),
Matrix(Matrix4<f32>),
}Projection prefab
Variants
Orthographic(Ortho<f32>)Perspective(PerspectiveFov<f32>)A realistic perspective projection.
Matrix(Matrix4<f32>)Projection matrix
Trait Implementations
impl Clone for CameraPrefab[src]
impl Clone for CameraPrefabfn clone(&self) -> CameraPrefab[src]
fn clone(&self) -> CameraPrefabReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for CameraPrefab[src]
impl Debug for CameraPrefabfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> PrefabData<'a> for CameraPrefab[src]
impl<'a> PrefabData<'a> for CameraPrefabtype SystemData = WriteStorage<'a, Camera>
SystemData needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>[src]
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>Load the data for this prefab onto the given Entity Read more
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl Send for CameraPrefab
impl Send for CameraPrefabimpl Sync for CameraPrefab
impl Sync for CameraPrefab