EGLplus (0.52.0) a C++ wrapper for EGL

rendering_api.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef EGLPLUS_RENDERING_API_1303292057_HPP
14 #define EGLPLUS_RENDERING_API_1303292057_HPP
15 
16 #include <eglplus/enumerations.hpp>
17 #include <eglplus/eglfunc.hpp>
18 #include <eglplus/error/basic.hpp>
19 
20 namespace eglplus {
21 
23 
26 EGLPLUS_ENUM_CLASS_BEGIN(RenderingAPI, EGLenum)
27 #include <eglplus/enums/rendering_api.ipp>
28 EGLPLUS_ENUM_CLASS_END(RenderingAPI)
29 
30 #if !EGLPLUS_NO_ENUM_VALUE_NAMES
31 #include <eglplus/enums/rendering_api_names.ipp>
32 #endif
33 
34 #if !EGLPLUS_ENUM_VALUE_RANGES
35 #include <eglplus/enums/rendering_api_range.ipp>
36 #endif
37 
39 
43 inline bool BindAPI(RenderingAPI api)
44 {
45  bool result = EGLPLUS_EGLFUNC(BindAPI)(EGLenum(api));
46  EGLPLUS_VERIFY_SIMPLE(BindAPI);
47  return result;
48 }
49 
51 
55 inline RenderingAPI QueryAPI(void)
56 {
57  EGLenum result = EGLPLUS_EGLFUNC(QueryAPI)();
58  EGLPLUS_VERIFY_SIMPLE(QueryAPI);
59  return RenderingAPI(result);
60 }
61 
62 } // namespace eglplus
63 
64 #endif // include guard
RenderingAPI QueryAPI(void)
Query the currently bound rendering API.
Definition: rendering_api.hpp:55
Helper macro expanding into EGL function name.
Enumeration-related declarations.
bool BindAPI(RenderingAPI api)
Bind the specified rendering API.
Definition: rendering_api.hpp:43
RenderingAPI
Rendering API enumeration.
Definition: rendering_api.hpp:26

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).