Struct rubullet::CameraImageOptions [−][src]
pub struct CameraImageOptions {}Show fields
pub view_matrix: Option<Matrix4<f32>>, pub projection_matrix: Option<Matrix4<f32>>, pub light_direction: Option<Vector3<f32>>, pub light_color: Option<[f32; 3]>, pub light_distance: Option<f32>, pub shadow: Option<bool>, pub light_ambient_coeff: Option<f32>, pub light_diffuse_coeff: Option<f32>, pub light_specular_coeff: Option<f32>, pub renderer: Option<Renderer>, pub flags: Option<RendererAuxFlags>, pub projective_texture_view: Option<Matrix4<f32>>, pub projective_texture_proj: Option<Matrix4<f32>>,
Expand description
Options for get_camera_image
Fields
view_matrix: Option<Matrix4<f32>>
view matrix, see compute_view_matrix
projection_matrix: Option<Matrix4<f32>>
projection matrix, see compute_projection_matrix
light_direction: Option<Vector3<f32>>
specifies the world position of the light source, the direction is from the light source position to the origin of the world frame.
light_color: Option<[f32; 3]>
directional light color in [RED,GREEN,BLUE] in range 0..1, only applies to Renderer::TinyRenderer
light_distance: Option<f32>
distance of the light along the normalized lightDirection, only applies to Renderer::TinyRenderer
shadow: Option<bool>
enables disables shadows, only applies to Renderer::TinyRenderer
light_ambient_coeff: Option<f32>
light ambient coefficient, only applies to Renderer::TinyRenderer
light_diffuse_coeff: Option<f32>
light diffuse coefficient, only applies to Renderer::TinyRenderer
light_specular_coeff: Option<f32>
light specular coefficient, only applies to Renderer::TinyRenderer
renderer: Option<Renderer>
Note that Direct mode has no OpenGL, so it requires Renderer::TinyRenderer
.
flags: Option<RendererAuxFlags>
additional rendering flags
projective_texture_view: Option<Matrix4<f32>>
projective_texture_proj: Option<Matrix4<f32>>
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CameraImageOptions
impl Send for CameraImageOptions
impl Sync for CameraImageOptions
impl Unpin for CameraImageOptions
impl UnwindSafe for CameraImageOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V