MyGUI 3.4.2
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);
25
26#ifndef MYGUI_DONT_USE_OBSOLETE
27 MYGUI_OBSOLETE(" is deprecated, use : uint32 texture_utility::toNativeColour(const Colour& _colour, VertexColourType _format)")
29 {
31 }
32#endif
33
34 } // namespace texture_utility
35
36} // namespace MyGUI
37
38#endif // MYGUI_TEXTURE_UTILITY_H_
#define MYGUI_OBSOLETE(text)
#define MYGUI_EXPORT
void convertColour(uint32 &_colour, VertexColourType _format)
Convert from 32-bit ARGB to native colour (ABGR or ARGB)
uint32 toColourARGB(const Colour &_colour)
const IntSize & getTextureSize(const std::string &_texture, bool _cache=true)
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
uint32_t uint32
Definition MyGUI_Types.h:48