pub fn apply_postprocessing(&mut self,
                                steps: &[Process])
                                -> Result<(), &str> {
        unsafe {
            let flags = steps.iter().fold(0, |x, &y| x | y as u32);
            let scene = ffi::aiApplyPostProcessing(self.raw_scene,
                                                   flags);
            if scene.is_null() {
                //TODO: invalidate the scene
                Err("Post processing failed")
            } else {
                Ok(())
            }
        }
    }
/// Apply post-processing to an already-imported scene.
///
/// This is the same as if the options where set using the `Importer`
/// except you can inspect the `Scene` before hand to fine-tune your
/// post-processing setup.
///
/// # Parameters
///
/// * `steps` A list of post processing steps to perform on the `Scene`.
///
/// This process can fail if using `Process::ValidateDS` in which case an
/// error is returned and further usage of the scene is invalid.
Apply post-processing to an already-imported scene.
This is the same as if the options where set using the `Importer`
except you can inspect the `Scene` before hand to fine-tune your
post-processing setup.
Apply post - processing to an already - imported scene . This is the same as if the options where set using the ` Importer ` except you can inspect the ` Scene ` before hand to fine - tune your post - processing setup .
pub fn apply_postprocessing(&mut self,
                                steps: &[Process])
                                -> Result<(), &str> {
        unsafe {
            let flags = steps.iter().fold(0, |x, &y| x | y as u32);
            let scene = ffi::aiApplyPostProcessing(self.raw_scene,
                                                   flags);
            if scene.is_null() {
                //TODO: invalidate the scene
                Err("Post processing failed")
            } else {
                Ok(())
            }
        }
    }
pub fn apply_postprocessing ( & mut self , steps : & [ Process ] ) -> Result < ( ) , & str > { unsafe { let flags = steps . iter ( ) . fold ( 0 , | x , & y | x | y as u32 ) ; let scene = ffi :: aiApplyPostProcessing ( self . raw_scene , flags ) ; if scene . is_null ( ) { //TODO: invalidate the scene Err ( " " ) } else { Ok ( ( ) ) } } }
Apply post-processing to an already-imported scene.
Apply post - processing to an already - imported scene .
&mut self
steps
&[Process]
&mut self
steps
&[Process]