MyGUI 3.5.3
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
15{
16
18 MYGUI_EXPORT uint32 toNativeColour(const Colour& _colour, VertexColourType _format);
20 MYGUI_EXPORT void convertColour(uint32& _colour, VertexColourType _format);
21
22#ifndef MYGUI_DONT_USE_OBSOLETE
24 " is deprecated, use : const IntSize& MyGUI::RenderManager::getTextureSize(const std::string& _texture, bool "
25 "_cache)")
26 MYGUI_EXPORT const IntSize& getTextureSize(const std::string& _texture, bool _cache = true);
28 " is deprecated, use : uint32 texture_utility::toNativeColour(const Colour& _colour, VertexColourType _format)")
29 inline uint32 toColourARGB(const Colour& _colour)
30 {
31 return toNativeColour(_colour, VertexColourType::ColourARGB);
32 }
33#endif
34
35} // namespace MyGUI
36
37#endif // MYGUI_TEXTURE_UTILITY_H_
#define MYGUI_OBSOLETE(text)
#define MYGUI_EXPORT
const IntSize & getTextureSize(const std::string &_texture, bool _cache)
__attribute__((visibility("default"))) const IntSize &getTextureSize(const std uint32 toColourARGB(const Colour &_colour)
void convertColour(uint32 &_colour, VertexColourType _format)
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
uint32_t uint32
Definition MyGUI_Types.h:47
types::TSize< int > IntSize
Definition MyGUI_Types.h:29