FreeRDP
Loading...
Searching...
No Matches
sdl_resource_manager.hpp
1
18
#pragma once
19
20
#include <string>
21
#include <map>
22
#include <vector>
23
24
class
SDLResourceManager
25
{
26
friend
class
SDLResourceFile
;
27
28
public
:
29
SDLResourceManager
() =
delete
;
30
SDLResourceManager
(
const
SDLResourceManager
& other) =
delete
;
31
SDLResourceManager
(
const
SDLResourceManager
&& other) =
delete
;
32
~SDLResourceManager
() =
delete
;
33
SDLResourceManager
operator=(
const
SDLResourceManager
& other) =
delete
;
34
SDLResourceManager
& operator=(
SDLResourceManager
&& other) =
delete
;
35
36
[[nodiscard]]
static
std::string
typeFonts
();
37
[[nodiscard]]
static
std::string typeImages();
38
39
protected
:
40
static
void
insert(
const
std::string& type,
const
std::string&
id
,
41
const
std::vector<unsigned char>& data);
42
43
[[nodiscard]]
static
const
std::vector<unsigned char>* data(
const
std::string& type,
44
const
std::string&
id
);
45
[[nodiscard]]
static
std::string filename(
const
std::string& type,
const
std::string&
id
);
46
47
[[nodiscard]]
static
bool
useCompiledResources();
48
49
private
:
50
[[nodiscard]]
static
std::map<std::string, std::vector<unsigned char>>& resources();
51
#if defined(SDL_USE_COMPILED_RESOURCES)
52
static
void
init();
// implemented in generated file
53
#endif
54
};
SDLResourceFile
Definition
sdl_resource_file.hpp:24
SDLResourceManager
Definition
sdl_resource_manager.hpp:25
SDLResourceManager::typeFonts
static std::string typeFonts()
Definition
sdl_resource_manager.cpp:30
client
SDL
common
res
sdl_resource_manager.hpp
Generated by
1.9.8