opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
osc::MeshBasicTexturedMaterial Class Reference

#include <mesh_basic_textured_material.h>

Inheritance diagram for osc::MeshBasicTexturedMaterial:
[legend]
Collaboration diagram for osc::MeshBasicTexturedMaterial:
[legend]

Public Types

using Params = MeshBasicTexturedMaterialParams
 

Public Member Functions

 MeshBasicTexturedMaterial (const Params &={})
 
 MeshBasicTexturedMaterial (Texture2D texture)
 
Texture2D texture () const
 
void set_texture (const Texture2D &)
 
- Public Member Functions inherited from osc::Material
 Material (Shader)
 
const Shadershader () const
 
void clear ()
 
bool empty () const
 
template<MaterialPropertyValue T>
std::optional< Tget (std::string_view property_name) const
 
template<MaterialPropertyValue T>
std::optional< Tget (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)
 

Member Typedef Documentation

◆ Params

Constructor & Destructor Documentation

◆ MeshBasicTexturedMaterial() [1/2]

osc::MeshBasicTexturedMaterial::MeshBasicTexturedMaterial ( const Params = {})
explicit

◆ MeshBasicTexturedMaterial() [2/2]

osc::MeshBasicTexturedMaterial::MeshBasicTexturedMaterial ( Texture2D  texture)
inlineexplicit

Member Function Documentation

◆ set_texture()

void osc::MeshBasicTexturedMaterial::set_texture ( const Texture2D )

◆ texture()

Texture2D osc::MeshBasicTexturedMaterial::texture ( ) const

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