Antkeeper  0.0.1
Classes | Public Member Functions | List of all members
render::material_pass Class Reference

Renders scene objects using their material-specified shaders and properties. More...

#include <material-pass.hpp>

Inheritance diagram for render::material_pass:
render::pass

Public Member Functions

 material_pass (gl::pipeline *pipeline, const gl::framebuffer *framebuffer, resource_manager *resource_manager)
 
void render (render::context &ctx) override
 
void set_fallback_material (std::shared_ptr< render::material > fallback)
 Sets the material to be used when a render operation is missing a material. If no fallback material is specified, render operations without materials will not be processed. More...
 
void set_mouse_position (const math::fvec2 &position)
 
- Public Member Functions inherited from render::pass
 pass (gl::pipeline *pipeline, const gl::framebuffer *framebuffer)
 
virtual ~pass ()
 
void set_enabled (bool enabled)
 
constexpr bool is_enabled () const noexcept
 
void set_framebuffer (const gl::framebuffer *framebuffer)
 
void set_clear_mask (std::uint8_t mask) noexcept
 
void set_clear_value (const gl::clear_value &value) noexcept
 
void clear ()
 

Additional Inherited Members

- Protected Attributes inherited from render::pass
gl::pipelinem_pipeline
 
const gl::framebufferm_framebuffer
 
std::uint8_t m_clear_mask {}
 
gl::clear_value m_clear_value
 

Detailed Description

Renders scene objects using their material-specified shaders and properties.

Definition at line 41 of file material-pass.hpp.

Constructor & Destructor Documentation

◆ material_pass()

render::material_pass::material_pass ( gl::pipeline pipeline,
const gl::framebuffer framebuffer,
resource_manager resource_manager 
)

Definition at line 120 of file material-pass.cpp.

Member Function Documentation

◆ render()

void render::material_pass::render ( render::context ctx)
overridevirtual

Implements render::pass.

Definition at line 131 of file material-pass.cpp.

◆ set_fallback_material()

void render::material_pass::set_fallback_material ( std::shared_ptr< render::material fallback)

Sets the material to be used when a render operation is missing a material. If no fallback material is specified, render operations without materials will not be processed.

Definition at line 322 of file material-pass.cpp.

◆ set_mouse_position()

void render::material_pass::set_mouse_position ( const math::fvec2 position)
inline

Definition at line 51 of file material-pass.hpp.


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