Shape draw operation parameters, translated to GL representation. More...
#include <oglplus/shapes/drawing.hpp>
Public Member Functions | |
| constexpr | shape_draw_operation () noexcept=default |
| Default constructor. | |
| template<typename A > | |
| shape_draw_operation (const basic_gl_api< A > &api, const shapes::draw_operation &draw_op) noexcept | |
| Initialization from shape generator draw operation. | |
| auto | offset_first (span_size_t offs) noexcept -> auto & |
| Moves the first index by the specified offset. | |
| auto | phase () const noexcept |
| Returns the drawing phase. | |
| template<typename A > | |
| auto | is_indexed (const basic_gl_api< A > &api) const noexcept -> bool |
| Indicates if indexed drawing is enabled. | |
| template<typename A > | |
| void | draw (const basic_gl_api< A > &api) const noexcept |
| Invokes the appropriate draw operation on the specified GL api. | |
| template<typename A > | |
| void | draw_instanced (const basic_gl_api< A > &api, gl_types::sizei_type inst_count) const noexcept |
| Invokes the appropriate instanced draw operation on the given GL api. | |
Shape draw operation parameters, translated to GL representation.