#include "../config/basic.hpp"
#include "../gl_api.hpp"
#include <eagine/shapes/drawing.hpp>
#include <eagine/span.hpp>
#include <oglplus/shapes/drawing.inl>
Go to the source code of this file.
Classes | |
class | eagine::oglp::shape_draw_operation |
Shape draw operation parameters, translated to GL representation. More... | |
struct | eagine::oglp::shape_draw_subset |
Holds the first index and count of a subset of drawn shape elements. More... | |
Namespaces | |
eagine | |
Common code is placed in this namespace. | |
Functions | |
template<typename A > | |
auto | eagine::oglp::translate (const basic_gl_api< A > &, shapes::primitive_type) noexcept -> primitive_type |
Translates from shape primitive type to GL primitive type. More... | |
template<typename A > | |
auto | eagine::oglp::translate (const basic_gl_api< A > &, shapes::attrib_data_type) noexcept -> data_type |
Translates from shape attribute data type to GL data type. More... | |
template<typename A > | |
auto | eagine::oglp::translate (const basic_gl_api< A > &, shapes::index_data_type) noexcept -> index_data_type |
Translates from shape index data type to GL data type. More... | |
template<typename A > | |
auto | eagine::oglp::type_size (const basic_gl_api< A > &, shapes::attrib_data_type) noexcept -> span_size_t |
Returns the byte size of a shape attribute data type. More... | |
template<typename A > | |
auto | eagine::oglp::type_size (const basic_gl_api< A > &, shapes::index_data_type) noexcept -> span_size_t |
Returns the byte size of a shape index data type. More... | |
template<typename A > | |
void | eagine::oglp::draw_using_instructions (const basic_gl_api< A > &api, span< const shape_draw_operation > ops) noexcept |
Takes a sequence of draw operations from a shape generator and draws them. More... | |
template<typename A > | |
void | eagine::oglp::draw_instanced_using_instructions (const basic_gl_api< A > &api, span< const shape_draw_operation > ops, gl_types::sizei_type inst_count) noexcept |
Takes a sequence of draw operations from a shape generator and draws them. More... | |
template<typename A > | |
void | eagine::oglp::draw_using_instructions (const basic_gl_api< A > &api, span< const shape_draw_operation > ops, const shape_draw_subset &subs) noexcept |
Takes a sequence of draw operations from a shape generator and draws them. More... | |
template<typename A > | |
void | eagine::oglp::draw_instanced_using_instructions (const basic_gl_api< A > &api, span< const shape_draw_operation > ops, const shape_draw_subset &subs, gl_types::sizei_type inst_count) noexcept |
Takes a sequence of draw operations from a shape generator and draws them. More... | |
Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt