MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::SkyPatch:

Public Member Functions

auto assign_from_another (_other:&meshlib::SkyPatch) -> &mut meshlib::SkyPatch
auto dir () const -> &meshlib::Vector3f
auto dir_mut () -> &mut meshlib::Vector3f
void set_dir (value:meshlib::Vector3f)
auto radiation () const -> &f32
auto radiation_mut () -> &mut f32
void set_radiation (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SkyPatch >
static auto construct_from (dir:meshlib::Vector3f, radiation:f32) -> meshlib::Owned< meshlib::SkyPatch >
static auto construct_from_another (_other:&meshlib::SkyPatch) -> meshlib::Owned< meshlib::SkyPatch >
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

this class represents a portion of the sky, and its radiation Generated from class MR::SkyPatch.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::SkyPatch::assign_from_another ( _other:&meshlib::SkyPatch ) -> &mut meshlib::SkyPatch

Generated from method MR::SkyPatch::operator=.

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

◆ construct_from()

auto meshlib::SkyPatch::construct_from ( dir:meshlib::Vector3f ,
radiation:f32  ) -> meshlib::Owned< meshlib::SkyPatch >
static

Constructs MR::SkyPatch elementwise.

Calls MR_SkyPatch_ConstructFrom(). The reference to the parameter dir might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::SkyPatch::SkyPatch.

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

◆ dir()

auto meshlib::SkyPatch::dir ( ) const -> &meshlib::Vector3f

direction toward the center of the patch Returns a pointer to a member variable of class MR::SkyPatch named dir.

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

◆ dir_mut()

auto meshlib::SkyPatch::dir_mut ( ) -> &mut meshlib::Vector3f

direction toward the center of the patch Returns a mutable pointer to a member variable of class MR::SkyPatch named dir.

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

◆ new()

auto meshlib::SkyPatch::new ( ) -> meshlib::Owned< meshlib::SkyPatch >
static

Constructs an empty (default-constructed) instance.

Calls MR_SkyPatch_DefaultConstruct().

◆ radiation()

auto meshlib::SkyPatch::radiation ( ) const -> &f32

radiation of the patch depending on Sun's position, sky clearness and brightness, etc Returns a pointer to a member variable of class MR::SkyPatch named radiation.

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

◆ radiation_mut()

auto meshlib::SkyPatch::radiation_mut ( ) -> &mut f32

radiation of the patch depending on Sun's position, sky clearness and brightness, etc Returns a mutable pointer to a member variable of class MR::SkyPatch named radiation.

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

◆ set_dir()

void meshlib::SkyPatch::set_dir ( value:meshlib::Vector3f )

direction toward the center of the patch Modifies a member variable of class MR::SkyPatch named dir.

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

◆ set_radiation()

void meshlib::SkyPatch::set_radiation ( value:f32 )

radiation of the patch depending on Sun's position, sky clearness and brightness, etc Modifies a member variable of class MR::SkyPatch named radiation.

Calls MR_SkyPatch_Set_radiation().


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