#include <hps.h>
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
![]() | |
Control (Control &&in_that) | |
Control & | operator= (Control &&in_that) |
The HPS::LightingAttributeControl class is a smart pointer that is tied to a database object. This control is used to set the lighting interpolation algorithm.
This table lists default values for the various segment attributes accessible from HPS::LightingAttributeControl.
|
explicit |
Initializes a control tied to the segment in_seg.
HPS::LightingAttributeControl::LightingAttributeControl | ( | LightingAttributeControl const & | in_that | ) |
Initializes a control tied to the same object as in_that.
HPS::LightingAttributeControl::LightingAttributeControl | ( | LightingAttributeControl && | in_that | ) |
The move constructor creates a LightingAttributeControl by transferring the underlying impl of the rvalue reference to this LightingAttributeControl thereby avoiding a copy and allocation.
in_that | An rvalue reference to a LightingAttributeControl to take the impl from. |
HPS::LightingAttributeControl::~LightingAttributeControl | ( | ) |
Releases a reference to the database object this control is tied to.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Control.
LightingAttributeControl& HPS::LightingAttributeControl::operator= | ( | LightingAttributeControl && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this LightingAttributeControl thereby avoiding a copy.
in_that | An rvalue reference to a LightingAttributeControl to take the impl from. |
LightingAttributeControl& HPS::LightingAttributeControl::operator= | ( | LightingAttributeControl const & | in_that | ) |
Share the underlying smart-pointer of the LightingAttributeControl source.
in_that | The LightingAttributeControl source of the assignment. |
LightingAttributeControl& HPS::LightingAttributeControl::SetInterpolationAlgorithm | ( | Lighting::InterpolationAlgorithm | in_interpolation | ) |
Sets the interpolation algorithm that will be used for rendering lit faces.
in_interpolation | The algorithm that will be used for rendering lit faces. |
bool HPS::LightingAttributeControl::ShowInterpolationAlgorithm | ( | Lighting::InterpolationAlgorithm & | out_interpolation | ) | const |
Shows the interpolation algorithm that will be used for rendering lit faces.
out_interpolation | The algorithm that will be used for rendering lit faces. |
LightingAttributeControl& HPS::LightingAttributeControl::UnsetEverything | ( | ) |
Removes all settings from this object.
LightingAttributeControl& HPS::LightingAttributeControl::UnsetInterpolationAlgorithm | ( | ) |
Removes the interpolation algorithm setting.