galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Media.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_RESOURCE_MEDIA_HPP_
9#define GALAXY_RESOURCE_MEDIA_HPP_
10
11#include "galaxy/media/Sound.hpp"
12#include "galaxy/media/Video.hpp"
15
16#ifdef GALAXY_WIN_PLATFORM
17#pragma warning(push)
18#pragma warning(disable : 26434)
19#endif
20
21namespace galaxy
22{
23 namespace resource
24 {
30 struct SoundLoader final : public Loader<media::Sound>
31 {
39 std::unique_ptr<media::Sound> operator()(const std::string& file);
40 };
41
47 struct MusicLoader final : public Loader<media::Sound>
48 {
56 std::unique_ptr<media::Sound> operator()(const std::string& file);
57 };
58
64 struct VoiceLoader final : public Loader<media::Sound>
65 {
73 std::unique_ptr<media::Sound> operator()(const std::string& file);
74 };
75
80
85
90
95 } // namespace resource
96} // namespace galaxy
97
98#ifdef GALAXY_WIN_PLATFORM
99#pragma warning(pop)
100#endif
101
102#endif
Cache for resources such as audio, fonts, etc.
Definition Cache.hpp:31
Timer.hpp galaxy.
Definition Async.hpp:17
Loads resources for a resource cache.
Definition Loader.hpp:25
Loads resources for the music cache.
Definition Media.hpp:48
std::unique_ptr< media::Sound > operator()(const std::string &file)
Overloaded operator() used to load a resource.
Definition Media.cpp:26
Loads resources for the sound cache.
Definition Media.hpp:31
std::unique_ptr< media::Sound > operator()(const std::string &file)
Overloaded operator() used to load a resource.
Definition Media.cpp:14
Loads resources for the voice cache.
Definition Media.hpp:65
std::unique_ptr< media::Sound > operator()(const std::string &file)
Overloaded operator() used to load a resource.
Definition Media.cpp:38