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

type_utils.hpp File Reference
#include "../math/vector.hpp"
#include "config.hpp"
#include "enum_types.hpp"
#include <eagine/type_identity.hpp>
#include <type_traits>

Go to the source code of this file.

Namespaces

 eagine
 Common code is placed in this namespace.
 

Functions

template<typename T >
constexpr auto eagine::oglp::data_type_of () noexcept -> data_type
 Returns a data type for the specified C++ type T. More...
 
template<typename T >
constexpr auto eagine::oglp::pixel_data_type_of () noexcept -> pixel_data_type
 Returns a pixel data type for the specified C++ type T. More...
 
template<typename T >
constexpr auto eagine::oglp::sl_data_type_of () noexcept -> sl_data_type
 Returns a shading language data type for the specified C++ type T. More...
 
template<typename T >
constexpr auto eagine::oglp::pixel_format_of () noexcept -> pixel_format
 Returns the default pixel format for the specified C++ type T. More...
 
template<typename T >
constexpr auto eagine::oglp::internal_format_of () noexcept -> pixel_internal_format
 Returns the default pixel internal format for the specified C++ type T. More...
 

Variables

template<typename T >
constexpr const bool eagine::oglp::is_gl_data_type_v
 Trait indicating that T is one of GL basic (pixel) data types.
 

Detailed Description

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


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