Euphoria
eu::render::Material Struct Referenceabstract

Base class for all materials. More...

Inheritance diagram for eu::render::Material:
eu::render::DefaultMaterial eu::render::UnlitMaterial

Public Member Functions

 Material ()=default
virtual ~Material ()=default
 Material (const Material &)=delete
 Material (Material &&)=delete
void operator= (const Material &)=delete
void operator= (Material &&)=delete
virtual void use_shader (const RenderContext &)=0
virtual void set_uniforms (const RenderContext &, const CompiledCamera &, const std::optional< m4 > &)=0
virtual void bind_textures (const RenderContext &, State *states, Assets *assets)=0
virtual void apply_lights (const RenderContext &, const Lights &lights, const RenderSettings &settings, State *states, Assets *assets)=0
virtual bool is_transparent () const =0

Detailed Description

Base class for all materials.

Definition at line 28 of file material.h.

Constructor & Destructor Documentation

◆ Material() [1/3]

eu::render::Material::Material ( )
default

◆ ~Material()

virtual eu::render::Material::~Material ( )
virtualdefault

◆ Material() [2/3]

eu::render::Material::Material ( const Material & )
delete

◆ Material() [3/3]

eu::render::Material::Material ( Material && )
delete

Member Function Documentation

◆ apply_lights()

virtual void eu::render::Material::apply_lights ( const RenderContext & ,
const Lights & lights,
const RenderSettings & settings,
State * states,
Assets * assets )
pure virtual

◆ bind_textures()

virtual void eu::render::Material::bind_textures ( const RenderContext & ,
State * states,
Assets * assets )
pure virtual

◆ is_transparent()

virtual bool eu::render::Material::is_transparent ( ) const
nodiscardpure virtual

◆ operator=() [1/2]

void eu::render::Material::operator= ( const Material & )
delete

◆ operator=() [2/2]

void eu::render::Material::operator= ( Material && )
delete

◆ set_uniforms()

virtual void eu::render::Material::set_uniforms ( const RenderContext & ,
const CompiledCamera & ,
const std::optional< m4 > &  )
pure virtual

◆ use_shader()

virtual void eu::render::Material::use_shader ( const RenderContext & )
pure virtual

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