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

api_traits.hpp
Go to the documentation of this file.
1 #ifndef OGLPLUS_GL_API_API_TRAITS_HPP
9 #define OGLPLUS_GL_API_API_TRAITS_HPP
10 
11 #include "result.hpp"
12 
13 namespace eagine::oglp {
14 //------------------------------------------------------------------------------
19 public:
21  template <typename R>
23 
25  template <typename R>
27 
29  template <typename R>
31 
36  template <typename R>
38 
40  template <typename Api, typename Tag, typename Signature>
42  -> std::add_pointer_t<Signature>;
43 
44 private:
45  std::string _full_name;
46 };
47 //------------------------------------------------------------------------------
48 } // namespace eagine::oglp
49 
50 #endif // OGLPLUS_GL_API_API_TRAITS_HPP
Class wrapping the result of a C-API function call.
Definition: c_api_wrap.hpp:210
api_no_result< Result, gl_no_result_info > gl_no_result
Alias for always-invalid result of a missing GL API function call.
Definition: result.hpp:120
api_combined_result< Result, gl_result_info > gl_combined_result
Alias for a result that may come from mutiple difference GL API functions.
Definition: result.hpp:142
Primary template for conditionally valid values.
Definition: decl.hpp:49
gl_combined_result< R > combined_result
Combined result.
Definition: api_traits.hpp:37
auto link_function(Api &, Tag, string_view name, type_identity< Signature >) -> std::add_pointer_t< Signature >
Links a GL function with the specified name and Signature.
Policy customizing the generic C-API wrappers for the GL API.
Definition: api_traits.hpp:18
Template type used mostly for function type-tag dispatching.
Definition: type_identity.hpp:19
Policy class customizing C-API constant value loading and function linking.
Definition: c_api_wrap.hpp:901
api_opt_result< Result, gl_result_info > gl_opt_result
Alias for conditionally-valid result of a GL API function call.
Definition: result.hpp:134

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