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

eagine::oglp::glsl_source_ref Class Reference

Class referencing a set of GLSL source code strings. More...

#include <oglplus/glsl/source_ref.hpp>

Public Types

using char_type = gl_types::char_type
 Alias for character string type.
 
using int_type = gl_types::int_type
 Alias for integer type.
 
using sizei_type = gl_types::sizei_type
 Alias for integer type storing size values.
 

Public Member Functions

constexpr glsl_source_ref (const char_type *part, int_type length) noexcept
 Construction from a single C-string and length value.
 
constexpr glsl_source_ref (string_view source_str) noexcept
 Construction from a string_view.
 
 glsl_source_ref (span_size_t n, const char_type **ps, const int_type *ls) noexcept
 Construction from C-string array and lengths array.
 
constexpr auto count () const noexcept -> sizei_type
 Returns the number of source string fragments. More...
 
constexpr auto parts () const noexcept -> const char_type **
 Returns pointers to the source string fragments. More...
 
auto lengths () const noexcept -> const int_type *
 Returns the lengths of the source string fragments. More...
 

Detailed Description

Class referencing a set of GLSL source code strings.

Member Function Documentation

◆ count()

constexpr auto eagine::oglp::glsl_source_ref::count ( ) const -> sizei_type
inlineconstexprnoexcept

Returns the number of source string fragments.

See also
parts
lengths

◆ lengths()

auto eagine::oglp::glsl_source_ref::lengths ( ) const -> const int_type*
inlinenoexcept

Returns the lengths of the source string fragments.

See also
count
parts The Length of the returned array is at least the value returned by count().

◆ parts()

constexpr auto eagine::oglp::glsl_source_ref::parts ( ) const -> const char_type**
inlineconstexprnoexcept

Returns pointers to the source string fragments.

See also
count
lengths The Length of the returned array is at least the value returned by count().

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).