MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::ModelRenderParams Struct Reference
Inheritance diagram for meshlib::ModelRenderParams:

Public Member Functions

auto norm_matrix_ptr () const -> *const *const meshlib::Matrix4f
auto norm_matrix_ptr_mut () -> *mut *const meshlib::Matrix4f
void set_norm_matrix_ptr (value:Option<&meshlib::Matrix4f >)
auto light_pos () const -> &meshlib::Vector3f
auto light_pos_mut () -> &mut meshlib::Vector3f
void set_light_pos (value:meshlib::Vector3f)
auto transparency_mode () const -> &meshlib::TransparencyMode
auto transparency_mode_mut () -> &mut meshlib::TransparencyMode
void set_transparency_mode (value:&meshlib::TransparencyMode)
auto pass_mask () const -> &meshlib::RenderModelPassMask
auto pass_mask_mut () -> &mut meshlib::RenderModelPassMask
void set_pass_mask (value:meshlib::RenderModelPassMask)
auto model_matrix () const -> &meshlib::Matrix4f
auto clip_plane () const -> &meshlib::Plane3f
auto depth_function () const -> &meshlib::DepthFunction
auto depth_function_mut () -> &mut meshlib::DepthFunction
void set_depth_function (value:meshlib::DepthFunction)
auto view_matrix () const -> &meshlib::Matrix4f
auto proj_matrix () const -> &meshlib::Matrix4f
auto viewport_id () const -> &meshlib::ViewportId
auto viewport_id_mut () -> &mut meshlib::ViewportId
void set_viewport_id (value:meshlib::ViewportId)
auto viewport () const -> &meshlib::Vector4i
auto viewport_mut () -> &mut meshlib::Vector4i
void set_viewport (value:meshlib::Vector4i)
auto upcast_to_base_render_params () const -> &meshlib::BaseRenderParams
auto upcast_to_base_render_params_mut () -> &mut meshlib::BaseRenderParams
auto upcast_to_model_base_render_params () const -> &meshlib::ModelBaseRenderParams
auto upcast_to_model_base_render_params_mut () -> &mut meshlib::ModelBaseRenderParams

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::ModelRenderParams) -> meshlib::Owned< meshlib::ModelRenderParams >
static auto static_downcast_from_base_render_params (object:&meshlib::BaseRenderParams) -> &Self
static auto static_downcast_from_base_render_params_mut (object:&mut meshlib::BaseRenderParams) -> &mut Self
static auto static_downcast_from_model_base_render_params (object:&meshlib::ModelBaseRenderParams) -> &Self
static auto static_downcast_from_model_base_render_params_mut (object:&mut meshlib::ModelBaseRenderParams) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Mesh rendering parameters for primary rendering (as opposed to the picker). Generated from class MR::ModelRenderParams. Base classes: Direct: (non-virtual) MR::ModelBaseRenderParams Indirect: (non-virtual) MR::BaseRenderParams

Generated from class MR::ModelRenderParams. Heap-allocated instances are held in Owned<ModelRenderParams>.

Member Function Documentation

◆ clip_plane()

auto meshlib::ModelRenderParams::clip_plane ( ) const -> &meshlib::Plane3f

viewport clip plane (it is not applied while object does not have clipping flag set) Returns a pointer to a member variable of class MR::ModelRenderParams named clipPlane.

Calls MR_ModelRenderParams_Get_clipPlane(). The reference to this object might be preserved as the return value.

◆ construct_from_another()

auto meshlib::ModelRenderParams::construct_from_another ( _other:&meshlib::ModelRenderParams ) -> meshlib::Owned< meshlib::ModelRenderParams >
static

Generated from constructor MR::ModelRenderParams::ModelRenderParams.

Calls MR_ModelRenderParams_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ depth_function()

auto meshlib::ModelRenderParams::depth_function ( ) const -> &meshlib::DepthFunction

Returns a pointer to a member variable of class MR::ModelRenderParams named depthFunction.

Calls MR_ModelRenderParams_Get_depthFunction(). The reference to this object might be preserved as the return value.

◆ depth_function_mut()

auto meshlib::ModelRenderParams::depth_function_mut ( ) -> &mut meshlib::DepthFunction

Returns a mutable pointer to a member variable of class MR::ModelRenderParams named depthFunction.

Calls MR_ModelRenderParams_GetMutable_depthFunction(). The reference to this object might be preserved as the return value.

◆ light_pos()

auto meshlib::ModelRenderParams::light_pos ( ) const -> &meshlib::Vector3f

position of light source Returns a pointer to a member variable of class MR::ModelRenderParams named lightPos.

Calls MR_ModelRenderParams_Get_lightPos(). The reference to this object might be preserved as the return value.

◆ light_pos_mut()

auto meshlib::ModelRenderParams::light_pos_mut ( ) -> &mut meshlib::Vector3f

position of light source Returns a mutable pointer to a member variable of class MR::ModelRenderParams named lightPos.

Calls MR_ModelRenderParams_GetMutable_lightPos(). The reference to this object might be preserved as the return value.

◆ model_matrix()

auto meshlib::ModelRenderParams::model_matrix ( ) const -> &meshlib::Matrix4f

Returns a pointer to a member variable of class MR::ModelRenderParams named modelMatrix.

Calls MR_ModelRenderParams_Get_modelMatrix(). The reference to this object might be preserved as the return value.

◆ norm_matrix_ptr()

auto meshlib::ModelRenderParams::norm_matrix_ptr ( ) const -> *const *const meshlib::Matrix4f

normal matrix, only necessary for triangles rendering Returns a pointer to a member variable of class MR::ModelRenderParams named normMatrixPtr.

Calls MR_ModelRenderParams_Get_normMatrixPtr(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ norm_matrix_ptr_mut()

auto meshlib::ModelRenderParams::norm_matrix_ptr_mut ( ) -> *mut *const meshlib::Matrix4f

normal matrix, only necessary for triangles rendering Returns a mutable pointer to a member variable of class MR::ModelRenderParams named normMatrixPtr.

Calls MR_ModelRenderParams_GetMutable_normMatrixPtr(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ pass_mask()

auto meshlib::ModelRenderParams::pass_mask ( ) const -> &meshlib::RenderModelPassMask

Only perform rendering if bool( passMask & desiredPass ) is true. Returns a pointer to a member variable of class MR::ModelRenderParams named passMask.

Calls MR_ModelRenderParams_Get_passMask(). The reference to this object might be preserved as the return value.

◆ pass_mask_mut()

auto meshlib::ModelRenderParams::pass_mask_mut ( ) -> &mut meshlib::RenderModelPassMask

Only perform rendering if bool( passMask & desiredPass ) is true. Returns a mutable pointer to a member variable of class MR::ModelRenderParams named passMask.

Calls MR_ModelRenderParams_GetMutable_passMask(). The reference to this object might be preserved as the return value.

◆ proj_matrix()

auto meshlib::ModelRenderParams::proj_matrix ( ) const -> &meshlib::Matrix4f

Returns a pointer to a member variable of class MR::ModelRenderParams named projMatrix.

Calls MR_ModelRenderParams_Get_projMatrix(). The reference to this object might be preserved as the return value.

◆ set_depth_function()

void meshlib::ModelRenderParams::set_depth_function ( value:meshlib::DepthFunction )

Modifies a member variable of class MR::ModelRenderParams named depthFunction.

Calls MR_ModelRenderParams_Set_depthFunction(). The reference to the parameter value might be preserved in this object in element depthFunction.

◆ set_light_pos()

void meshlib::ModelRenderParams::set_light_pos ( value:meshlib::Vector3f )

position of light source Modifies a member variable of class MR::ModelRenderParams named lightPos.

Calls MR_ModelRenderParams_Set_lightPos(). The reference to the parameter value might be preserved in this object in element lightPos.

◆ set_norm_matrix_ptr()

void meshlib::ModelRenderParams::set_norm_matrix_ptr ( value:Option<&meshlib::Matrix4f > )

normal matrix, only necessary for triangles rendering Modifies a member variable of class MR::ModelRenderParams named normMatrixPtr.

Calls MR_ModelRenderParams_Set_normMatrixPtr(). The reference to the parameter value might be preserved in this object in element normMatrixPtr.

◆ set_pass_mask()

void meshlib::ModelRenderParams::set_pass_mask ( value:meshlib::RenderModelPassMask )

Only perform rendering if bool( passMask & desiredPass ) is true. Modifies a member variable of class MR::ModelRenderParams named passMask.

Calls MR_ModelRenderParams_Set_passMask(). The reference to the parameter value might be preserved in this object in element passMask.

◆ set_transparency_mode()

void meshlib::ModelRenderParams::set_transparency_mode ( value:&meshlib::TransparencyMode )

determines how to handle transparent models Modifies a member variable of class MR::ModelRenderParams named transparencyMode.

Calls MR_ModelRenderParams_Set_transparencyMode(). The reference to the parameter value might be preserved in this object in element transparencyMode.

◆ set_viewport()

void meshlib::ModelRenderParams::set_viewport ( value:meshlib::Vector4i )

viewport x0, y0, width, height Modifies a member variable of class MR::ModelRenderParams named viewport.

Calls MR_ModelRenderParams_Set_viewport(). The reference to the parameter value might be preserved in this object in element viewport.

◆ set_viewport_id()

void meshlib::ModelRenderParams::set_viewport_id ( value:meshlib::ViewportId )

id of the viewport Modifies a member variable of class MR::ModelRenderParams named viewportId.

Calls MR_ModelRenderParams_Set_viewportId(). The reference to the parameter value might be preserved in this object in element viewportId.

◆ static_downcast_from_base_render_params()

auto meshlib::ModelRenderParams::static_downcast_from_base_render_params ( object:&meshlib::BaseRenderParams ) -> &Self
static

Static downcast from the base class MR::BaseRenderParams.

Calls MR_ModelRenderParams_StaticDowncastFrom_MR_BaseRenderParams(). Undefined behavior if the object isn't actually a ModelRenderParams.

Note
This function is unsafe.

◆ static_downcast_from_base_render_params_mut()

auto meshlib::ModelRenderParams::static_downcast_from_base_render_params_mut ( object:&mut meshlib::BaseRenderParams ) -> &mut Self
static

Static downcast from the base class MR::BaseRenderParams.

Calls MR_ModelRenderParams_MutableStaticDowncastFrom_MR_BaseRenderParams(). Undefined behavior if the object isn't actually a ModelRenderParams.

Note
This function is unsafe.

◆ static_downcast_from_model_base_render_params()

auto meshlib::ModelRenderParams::static_downcast_from_model_base_render_params ( object:&meshlib::ModelBaseRenderParams ) -> &Self
static

Static downcast from the base class MR::ModelBaseRenderParams.

Calls MR_ModelRenderParams_StaticDowncastFrom_MR_ModelBaseRenderParams(). Undefined behavior if the object isn't actually a ModelRenderParams.

Note
This function is unsafe.

◆ static_downcast_from_model_base_render_params_mut()

auto meshlib::ModelRenderParams::static_downcast_from_model_base_render_params_mut ( object:&mut meshlib::ModelBaseRenderParams ) -> &mut Self
static

Static downcast from the base class MR::ModelBaseRenderParams.

Calls MR_ModelRenderParams_MutableStaticDowncastFrom_MR_ModelBaseRenderParams(). Undefined behavior if the object isn't actually a ModelRenderParams.

Note
This function is unsafe.

◆ transparency_mode()

auto meshlib::ModelRenderParams::transparency_mode ( ) const -> &meshlib::TransparencyMode

determines how to handle transparent models Returns a pointer to a member variable of class MR::ModelRenderParams named transparencyMode.

Calls MR_ModelRenderParams_Get_transparencyMode(). The reference to this object might be preserved as the return value.

◆ transparency_mode_mut()

auto meshlib::ModelRenderParams::transparency_mode_mut ( ) -> &mut meshlib::TransparencyMode

determines how to handle transparent models Returns a mutable pointer to a member variable of class MR::ModelRenderParams named transparencyMode.

Calls MR_ModelRenderParams_GetMutable_transparencyMode(). The reference to this object might be preserved as the return value.

◆ upcast_to_base_render_params()

auto meshlib::ModelRenderParams::upcast_to_base_render_params ( ) const -> &meshlib::BaseRenderParams

Upcasts to the base class MR::BaseRenderParams.

Calls MR_ModelRenderParams_UpcastTo_MR_BaseRenderParams().

◆ upcast_to_base_render_params_mut()

auto meshlib::ModelRenderParams::upcast_to_base_render_params_mut ( ) -> &mut meshlib::BaseRenderParams

Upcasts to the base class MR::BaseRenderParams.

Calls MR_ModelRenderParams_MutableUpcastTo_MR_BaseRenderParams().

◆ upcast_to_model_base_render_params()

auto meshlib::ModelRenderParams::upcast_to_model_base_render_params ( ) const -> &meshlib::ModelBaseRenderParams

Upcasts to the base class MR::ModelBaseRenderParams.

Calls MR_ModelRenderParams_UpcastTo_MR_ModelBaseRenderParams().

◆ upcast_to_model_base_render_params_mut()

auto meshlib::ModelRenderParams::upcast_to_model_base_render_params_mut ( ) -> &mut meshlib::ModelBaseRenderParams

Upcasts to the base class MR::ModelBaseRenderParams.

Calls MR_ModelRenderParams_MutableUpcastTo_MR_ModelBaseRenderParams().

◆ view_matrix()

auto meshlib::ModelRenderParams::view_matrix ( ) const -> &meshlib::Matrix4f

Returns a pointer to a member variable of class MR::ModelRenderParams named viewMatrix.

Calls MR_ModelRenderParams_Get_viewMatrix(). The reference to this object might be preserved as the return value.

◆ viewport()

auto meshlib::ModelRenderParams::viewport ( ) const -> &meshlib::Vector4i

viewport x0, y0, width, height Returns a pointer to a member variable of class MR::ModelRenderParams named viewport.

Calls MR_ModelRenderParams_Get_viewport(). The reference to this object might be preserved as the return value.

◆ viewport_id()

auto meshlib::ModelRenderParams::viewport_id ( ) const -> &meshlib::ViewportId

id of the viewport Returns a pointer to a member variable of class MR::ModelRenderParams named viewportId.

Calls MR_ModelRenderParams_Get_viewportId(). The reference to this object might be preserved as the return value.

◆ viewport_id_mut()

auto meshlib::ModelRenderParams::viewport_id_mut ( ) -> &mut meshlib::ViewportId

id of the viewport Returns a mutable pointer to a member variable of class MR::ModelRenderParams named viewportId.

Calls MR_ModelRenderParams_GetMutable_viewportId(). The reference to this object might be preserved as the return value.

◆ viewport_mut()

auto meshlib::ModelRenderParams::viewport_mut ( ) -> &mut meshlib::Vector4i

viewport x0, y0, width, height Returns a mutable pointer to a member variable of class MR::ModelRenderParams named viewport.

Calls MR_ModelRenderParams_GetMutable_viewport(). The reference to this object might be preserved as the return value.


The documentation for this struct was generated from the following file: