TGUI
=
=
Download
Tutorials
0.8
0.7
0.6
Documentation
0.8
0.7
0.6
Examples
0.8
0.7
0.6
Community
TGUI
0.7.8
include
TGUI
TextureManager.hpp
1
//
3
// TGUI - Texus's Graphical User Interface
4
// Copyright (C) 2012-2017 Bruno Van de Velde (vdv_b@tgui.eu)
5
//
6
// This software is provided 'as-is', without any express or implied warranty.
7
// In no event will the authors be held liable for any damages arising from the use of this software.
8
//
9
// Permission is granted to anyone to use this software for any purpose,
10
// including commercial applications, and to alter it and redistribute it freely,
11
// subject to the following restrictions:
12
//
13
// 1. The origin of this software must not be misrepresented;
14
// you must not claim that you wrote the original software.
15
// If you use this software in a product, an acknowledgment
16
// in the product documentation would be appreciated but is not required.
17
//
18
// 2. Altered source versions must be plainly marked as such,
19
// and must not be misrepresented as being the original software.
20
//
21
// 3. This notice may not be removed or altered from any source distribution.
22
//
24
25
26
#ifndef TGUI_TEXTURE_MANAGER_HPP
27
#define TGUI_TEXTURE_MANAGER_HPP
28
30
31
#include <TGUI/TextureData.hpp>
32
#include <TGUI/Config.hpp>
33
34
#include <list>
35
#include <map>
36
#include <memory>
37
39
40
namespace
tgui
41
{
42
class
Texture;
43
45
46
class
TGUI_API
TextureManager
47
{
48
public
:
61
static
bool
getTexture(
Texture
& texture,
const
std::string& filename,
const
sf::IntRect& partRect = sf::IntRect(0, 0, 0, 0));
62
63
70
static
void
copyTexture(std::shared_ptr<TextureData> textureDataToCopy);
71
72
81
static
void
removeTexture(std::shared_ptr<TextureData> textureDataToRemove);
82
83
85
protected
:
86
87
static
std::map<std::string, std::list<TextureDataHolder>> m_imageMap;
88
};
89
91
}
92
94
95
#endif // TGUI_TEXTURE_MANAGER_HPP
tgui
Namespace that contains all TGUI functions and classes.
Definition:
Animation.hpp:33
tgui::TextureManager
Definition:
TextureManager.hpp:46
tgui::Texture
Definition:
Texture.hpp:44
Generated on Sun Aug 5 2018 11:41:19 for TGUI by
1.8.14