Antkeeper
0.0.1
|
Renders scene objects using their material-specified shaders and properties. More...
#include <material-pass.hpp>
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) |
![]() | |
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 | |
![]() | |
gl::pipeline * | m_pipeline |
const gl::framebuffer * | m_framebuffer |
std::uint8_t | m_clear_mask {} |
gl::clear_value | m_clear_value |
Renders scene objects using their material-specified shaders and properties.
Definition at line 41 of file material-pass.hpp.
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.
|
overridevirtual |
Implements render::pass.
Definition at line 131 of file material-pass.cpp.
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.
|
inline |
Definition at line 51 of file material-pass.hpp.