opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
osc::Shader Class Referencefinal

#include <shader.h>

Public Member Functions

 Shader (std::string_view vertex_shader_src, std::string_view fragment_shader_src)
 
 Shader (std::string_view vertex_shader_src, std::string_view geometry_shader_src, std::string_view fragment_shader_src)
 
size_t num_properties () const
 
std::optional< size_tproperty_index (std::string_view property_name) const
 
std::string_view property_name (size_t) const
 
ShaderPropertyType property_type (size_t) const
 

Friends

class GraphicsBackend
 
bool operator== (const Shader &, const Shader &)=default
 
std::ostream & operator<< (std::ostream &, const Shader &)
 

Constructor & Destructor Documentation

◆ Shader() [1/2]

osc::Shader::Shader ( std::string_view  vertex_shader_src,
std::string_view  fragment_shader_src 
)

◆ Shader() [2/2]

osc::Shader::Shader ( std::string_view  vertex_shader_src,
std::string_view  geometry_shader_src,
std::string_view  fragment_shader_src 
)

Member Function Documentation

◆ num_properties()

size_t osc::Shader::num_properties ( ) const

◆ property_index()

std::optional< size_t > osc::Shader::property_index ( std::string_view  property_name) const

◆ property_name()

std::string_view osc::Shader::property_name ( size_t  ) const

◆ property_type()

ShaderPropertyType osc::Shader::property_type ( size_t  ) const

Friends And Related Symbol Documentation

◆ GraphicsBackend

friend class GraphicsBackend
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  ,
const Shader  
)
friend

◆ operator==

bool operator== ( const Shader ,
const Shader  
)
friend

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