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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.