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

api_traits.hpp
Go to the documentation of this file.
1 #ifndef EGLPLUS_EGL_API_API_TRAITS_HPP
9 #define EGLPLUS_EGL_API_API_TRAITS_HPP
10 
11 #include "result.hpp"
12 
13 namespace eagine::eglp {
14 //------------------------------------------------------------------------------
19 public:
21  template <typename R>
23 
25  template <typename R>
27 
29  template <typename R>
31 
33  template <typename Api, typename Tag, typename Signature>
34  auto link_function(Api& api, Tag, string_view name, type_identity<Signature>)
35  -> std::add_pointer_t<Signature>;
36 
37 private:
38  std::string _full_name;
39 };
40 //------------------------------------------------------------------------------
41 } // namespace eagine::eglp
42 
43 #endif // EGLPLUS_EGL_API_API_TRAITS_HPP
Class wrapping the result of a C-API function call.
Definition: c_api_wrap.hpp:210
api_no_result< Result, egl_no_result_info > egl_no_result
Alias for always-invalid result of a missing EGL API function call.
Definition: result.hpp:165
EGL-related code is placed in this namespace.
Definition: eglplus.hpp:11
auto link_function(Api &api, Tag, string_view name, type_identity< Signature >) -> std::add_pointer_t< Signature >
Links an EGL function with the specified name and Signature.
Primary template for conditionally valid values.
Definition: decl.hpp:49
api_opt_result< Result, egl_result_info > egl_opt_result
Alias for conditionally-valid result of a EGL API function call.
Definition: result.hpp:179
Policy customizing the generic C-API wrappers for the EGL 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

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