|
opynsim
Unofficial C++ Documentation
|
#include <mesh_phong_material.h>
Public Types | |
| using | Params = MeshPhongMaterialParams |
Public Member Functions | |
| MeshPhongMaterial (const Params &=Params{}) | |
| Vector3 | light_position () const |
| void | set_light_position (const Vector3 &) |
| Vector3 | viewer_position () const |
| void | set_viewer_position (const Vector3 &) |
| Color | light_color () const |
| void | set_light_color (const Color &) |
| Color | ambient_color () const |
| void | set_ambient_color (const Color &) |
| Color | diffuse_color () const |
| void | set_diffuse_color (const Color &) |
| Color | specular_color () const |
| void | set_specular_color (const Color &) |
| float | specular_shininess () const |
| void | set_specular_shininess (float) |
Public Member Functions inherited from osc::Material | |
| Material (Shader) | |
| const Shader & | shader () const |
| void | clear () |
| bool | empty () const |
| template<MaterialPropertyValue T> | |
| std::optional< T > | get (std::string_view property_name) const |
| template<MaterialPropertyValue T> | |
| std::optional< T > | get (const StringName &property_name) const |
| template<MaterialPropertyValue T> | |
| void | set (std::string_view property_name, const T &value) |
| template<MaterialPropertyValue T> | |
| void | set (const StringName &property_name, const T &value) |
| template<MaterialPropertyValue T> | |
| std::optional< std::span< const T > > | get_array (std::string_view property_name) const |
| template<MaterialPropertyValue T> | |
| std::optional< std::span< const T > > | get_array (const StringName &property_name) const |
| template<MaterialPropertyValue T> | |
| void | set_array (std::string_view property_name, std::span< const T > values) |
| template<MaterialPropertyValue T> | |
| void | set_array (const StringName &property_name, std::span< const T > values) |
| template<std::convertible_to< std::string_view > StringLike, std::ranges::contiguous_range Range> | |
| void | set_array (StringLike &&property_name, Range &&values) |
| void | unset (std::string_view property_name) |
| void | unset (const StringName &property_name) |
| bool | is_transparent () const |
| void | set_transparent (bool) |
| SourceBlendingFactor | source_blending_factor () const |
| void | set_source_blending_factor (SourceBlendingFactor) |
| DestinationBlendingFactor | destination_blending_factor () const |
| void | set_destination_blending_factor (DestinationBlendingFactor) |
| BlendingEquation | blending_equation () const |
| void | set_blending_equation (BlendingEquation) |
| bool | is_depth_tested () const |
| void | set_depth_tested (bool) |
| DepthFunction | depth_function () const |
| void | set_depth_function (DepthFunction) |
| bool | writes_to_depth_buffer () const |
| void | set_writes_to_depth_buffer (bool) |
| bool | is_wireframe () const |
| void | set_wireframe (bool) |
| CullMode | cull_mode () const |
| void | set_cull_mode (CullMode) |
| Color osc::MeshPhongMaterial::ambient_color | ( | ) | const |
| Color osc::MeshPhongMaterial::diffuse_color | ( | ) | const |
| Color osc::MeshPhongMaterial::light_color | ( | ) | const |
| Vector3 osc::MeshPhongMaterial::light_position | ( | ) | const |
| void osc::MeshPhongMaterial::set_ambient_color | ( | const Color & | ) |
| void osc::MeshPhongMaterial::set_diffuse_color | ( | const Color & | ) |
| void osc::MeshPhongMaterial::set_light_color | ( | const Color & | ) |
| void osc::MeshPhongMaterial::set_light_position | ( | const Vector3 & | ) |
| void osc::MeshPhongMaterial::set_specular_color | ( | const Color & | ) |
| void osc::MeshPhongMaterial::set_specular_shininess | ( | float | ) |
| void osc::MeshPhongMaterial::set_viewer_position | ( | const Vector3 & | ) |
| Color osc::MeshPhongMaterial::specular_color | ( | ) | const |
| float osc::MeshPhongMaterial::specular_shininess | ( | ) | const |
| Vector3 osc::MeshPhongMaterial::viewer_position | ( | ) | const |