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

eagine::oglp::prog_var_location< TagId > Class Template Reference

Class wrapping GL shader program variable location. More...

#include <oglplus/gl_api/prog_var_loc.hpp>

Public Member Functions

constexpr prog_var_location () noexcept=default
 Default constructor. More...
 
constexpr prog_var_location (int_type init) noexcept
 Explicit location initialization.
 
auto is_active () const noexcept -> bool
 Indicates if this instance wraps an active program variable.
 
constexpr operator bool () const noexcept
 Indicates if this instance wraps an active program variable. More...
 
constexpr auto location () const noexcept -> int_type
 Returns the location value.
 
constexpr operator int_type () const noexcept
 Explicit conversion to the variable location value.
 

Friends

constexpr friend auto operator== (prog_var_location a, prog_var_location b) noexcept
 Equality comparison (compares the location numeric value).
 
constexpr friend auto operator!= (prog_var_location a, prog_var_location b) noexcept
 Nonequality comparison (compares the location numeric value).
 
constexpr friend auto operator< (prog_var_location a, prog_var_location b) noexcept
 Less-than comparison (compares the location numeric value).
 

Detailed Description

template<identifier_t TagId>
class eagine::oglp::prog_var_location< TagId >

Class wrapping GL shader program variable location.

Constructor & Destructor Documentation

◆ prog_var_location()

template<identifier_t TagId>
constexpr eagine::oglp::prog_var_location< TagId >::prog_var_location ( )
constexprdefaultnoexcept

Default constructor.

Postcondition
!is_active()

Member Function Documentation

◆ operator bool()

template<identifier_t TagId>
constexpr eagine::oglp::prog_var_location< TagId >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Indicates if this instance wraps an active program variable.

See also
is_active

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