MyGUI: MyGUI_TextureUtility.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_TextureUtility.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_TEXTURE_UTILITY_H_
8#define MYGUI_TEXTURE_UTILITY_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Colour.h"
12#include "MyGUI_RenderFormat.h"
13
14namespace MyGUI
15{
16
17 namespace texture_utility
18 {
19
20 MYGUI_EXPORT const IntSize& getTextureSize(const std::string& _texture, bool _cache = true);
22 MYGUI_EXPORT uint32 toNativeColour(const Colour& _colour, VertexColourType _format);
24 MYGUI_EXPORT void convertColour(uint32& _colour, VertexColourType _format);
25
26#ifndef MYGUI_DONT_USE_OBSOLETE
27 MYGUI_OBSOLETE(" is deprecated, use : uint32 texture_utility::toNativeColour(const Colour& _colour, VertexColourType _format)")
28 inline uint32 toColourARGB(const Colour& _colour)
29 {
30 return toNativeColour(_colour, VertexColourType::ColourARGB);
31 }
32#endif
33
34 } // namespace texture_utility
35
36} // namespace MyGUI
37
38#endif // MYGUI_TEXTURE_UTILITY_H_
MyGUI_Colour.h
MYGUI_OBSOLETE
#define MYGUI_OBSOLETE(text)
Definition MyGUI_Diagnostic.h:71
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_RenderFormat.h
MyGUI::texture_utility::convertColour
void convertColour(uint32 &_colour, VertexColourType _format)
Convert from 32-bit ARGB to native colour (ABGR or ARGB)
Definition MyGUI_TextureUtility.cpp:91
MyGUI::texture_utility::toColourARGB
uint32 toColourARGB(const Colour &_colour)
Definition MyGUI_TextureUtility.h:28
MyGUI::texture_utility::getTextureSize
const IntSize & getTextureSize(const std::string &_texture, bool _cache=true)
Definition MyGUI_TextureUtility.cpp:20
MyGUI::texture_utility::toNativeColour
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
Definition MyGUI_TextureUtility.cpp:68
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::uint32
uint32_t uint32
Definition MyGUI_Types.h:48
MyGUI::Colour
Definition MyGUI_Colour.h:17
MyGUI::VertexColourType
Definition MyGUI_RenderFormat.h:16
MyGUI::VertexColourType::ColourARGB
@ ColourARGB
Definition MyGUI_RenderFormat.h:20
MyGUI::types::TSize< int >