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

object_name.hpp
Go to the documentation of this file.
1 #ifndef OALPLUS_AL_API_OBJECT_NAME_HPP
9 #define OALPLUS_AL_API_OBJECT_NAME_HPP
10 
11 #include "config.hpp"
12 #include <eagine/handle.hpp>
13 #include <eagine/message_id.hpp>
14 
15 namespace eagine::oalp {
16 //------------------------------------------------------------------------------
17 template <typename Tag>
18 using al_object_name = basic_handle<Tag, al_types::name_type>;
19 
20 template <typename Tag>
21 using al_owned_object_name = basic_owned_handle<Tag, al_types::name_type>;
22 //------------------------------------------------------------------------------
23 using source_tag = EAGINE_MSG_TYPE(al, Source);
24 using buffer_tag = EAGINE_MSG_TYPE(al, Buffer);
25 using effect_tag = EAGINE_MSG_TYPE(al, Effect);
26 using filter_tag = EAGINE_MSG_TYPE(al, Filter);
27 using auxiliary_effect_slot_tag = EAGINE_MSG_TYPE(al, AuxEffSlot);
28 //------------------------------------------------------------------------------
29 using source_name = al_object_name<source_tag>;
30 using buffer_name = al_object_name<buffer_tag>;
31 using effect_name = al_object_name<effect_tag>;
32 using filter_name = al_object_name<filter_tag>;
33 using auxiliary_effect_slot_name = al_object_name<auxiliary_effect_slot_tag>;
34 //------------------------------------------------------------------------------
35 using owned_source_name = al_owned_object_name<source_tag>;
36 using owned_buffer_name = al_owned_object_name<buffer_tag>;
37 using owned_effect_name = al_owned_object_name<effect_tag>;
38 using owned_filter_name = al_owned_object_name<filter_tag>;
39 using owned_auxiliary_effect_slot_name =
40  al_owned_object_name<auxiliary_effect_slot_tag>;
41 //------------------------------------------------------------------------------
42 } // namespace eagine::oalp
43 
44 #endif // OALPLUS_AL_API_OBJECT_NAME_HPP
#define EAGINE_MSG_TYPE(API, NAME)
Macro for declaring instantiations of static_message_id.
Definition: message_id.hpp:140
AL-related code is placed in this namespace.
Definition: oalplus.hpp:11

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