Go to the documentation of this file. 1 #ifndef OALPLUS_AL_API_CONFIG_HPP
9 #define OALPLUS_AL_API_CONFIG_HPP
11 #include "../config/basic.hpp"
14 #ifndef OALPLUS_HAS_AL
15 #if defined(AL_NO_ERROR)
16 #define OALPLUS_HAS_AL 1
18 #define OALPLUS_HAS_AL 0
20 #endif // OALPLUS_HAS_AL
37 static constexpr
bool has_api =
true;
40 using enum_type = ALenum;
43 using char_type = ALchar;
46 using bool_type = ALboolean;
49 using byte_type = ALbyte;
52 using ubyte_type = ALubyte;
55 using short_type = ALshort;
58 using ushort_type = ALushort;
61 using int_type = ALint;
64 using uint_type = ALuint;
67 using name_type = ALuint;
70 using size_type = ALsizei;
73 using float_type = ALfloat;
76 using double_type = ALdouble;
78 static constexpr
bool has_api =
false;
79 using enum_type = int;
80 using char_type = char;
81 using bool_type = bool;
82 using byte_type = char;
83 using ubyte_type =
unsigned char;
84 using short_type = short;
85 using ushort_type =
unsigned short;
87 using uint_type = unsigned;
88 using name_type = unsigned;
89 using size_type = std::intptr_t;
90 using float_type = float;
91 using double_type = double;
94 static constexpr
auto bool_true(bool_type b) noexcept ->
bool {
102 static constexpr
auto error_code_no_error(enum_type ec) noexcept ->
bool {
104 return ec == AL_NO_ERROR;
106 EAGINE_MAYBE_UNUSED(ec);
114 #endif // OALPLUS_AL_API_CONFIG_HPP
const void * const_void_ptr_type
Untyped const pointer type.
Definition: config.hpp:35
Collection of aliases for AL types.
Definition: config.hpp:30
void * void_ptr_type
Untyped pointer type.
Definition: config.hpp:32
AL-related code is placed in this namespace.
Definition: oalplus.hpp:11