OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::oglp::shape_draw_operation Class Reference

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.
 

Detailed Description

Shape draw operation parameters, translated to GL representation.

See also
draw_using_instructions
draw_instanced_using_instructions

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).