|
opynsim
Unofficial C++ Documentation
|
#include <material.h>
Public Member Functions | |
| 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) |
Friends | |
| class | GraphicsBackend |
| bool | operator== (const Material &, const Material &)=default |
| std::ostream & | operator<< (std::ostream &, const Material &) |
|
explicit |
| BlendingEquation osc::Material::blending_equation | ( | ) | const |
| void osc::Material::clear | ( | ) |
| CullMode osc::Material::cull_mode | ( | ) | const |
| DepthFunction osc::Material::depth_function | ( | ) | const |
| DestinationBlendingFactor osc::Material::destination_blending_factor | ( | ) | const |
| bool osc::Material::empty | ( | ) | const |
| std::optional< T > osc::Material::get | ( | const StringName & | property_name | ) | const |
| std::optional< T > osc::Material::get | ( | std::string_view | property_name | ) | const |
| std::optional< std::span< const T > > osc::Material::get_array | ( | const StringName & | property_name | ) | const |
| std::optional< std::span< const T > > osc::Material::get_array | ( | std::string_view | property_name | ) | const |
| bool osc::Material::is_depth_tested | ( | ) | const |
| bool osc::Material::is_transparent | ( | ) | const |
| bool osc::Material::is_wireframe | ( | ) | const |
| void osc::Material::set | ( | const StringName & | property_name, |
| const T & | value | ||
| ) |
| void osc::Material::set | ( | std::string_view | property_name, |
| const T & | value | ||
| ) |
| void osc::Material::set_array | ( | const StringName & | property_name, |
| std::span< const T > | values | ||
| ) |
| void osc::Material::set_array | ( | std::string_view | property_name, |
| std::span< const T > | values | ||
| ) |
|
inline |
| void osc::Material::set_blending_equation | ( | BlendingEquation | ) |
| void osc::Material::set_cull_mode | ( | CullMode | ) |
| void osc::Material::set_depth_function | ( | DepthFunction | ) |
| void osc::Material::set_depth_tested | ( | bool | ) |
| void osc::Material::set_destination_blending_factor | ( | DestinationBlendingFactor | ) |
| void osc::Material::set_source_blending_factor | ( | SourceBlendingFactor | ) |
| void osc::Material::set_transparent | ( | bool | ) |
| void osc::Material::set_wireframe | ( | bool | ) |
| void osc::Material::set_writes_to_depth_buffer | ( | bool | ) |
| const Shader & osc::Material::shader | ( | ) | const |
| SourceBlendingFactor osc::Material::source_blending_factor | ( | ) | const |
| void osc::Material::unset | ( | const StringName & | property_name | ) |
| void osc::Material::unset | ( | std::string_view | property_name | ) |
| bool osc::Material::writes_to_depth_buffer | ( | ) | const |
|
friend |
|
friend |