MyGUI_TextureUtility.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_TEXTURE_UTILITY_H_
#define MYGUI_TEXTURE_UTILITY_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Colour.h"
#include "MyGUI_RenderFormat.h"
namespace MyGUI::texture_utility
{
MYGUI_EXPORT const IntSize& getTextureSize(const std::string& _texture, bool _cache = true);
MYGUI_EXPORT uint32 toNativeColour(const Colour& _colour, VertexColourType _format);
MYGUI_EXPORT void convertColour(uint32& _colour, VertexColourType _format);
#ifndef MYGUI_DONT_USE_OBSOLETE
MYGUI_OBSOLETE(
" is deprecated, use : uint32 texture_utility::toNativeColour(const Colour& _colour, VertexColourType _format)")
inline uint32 toColourARGB(const Colour& _colour)
{
return toNativeColour(_colour, VertexColourType::ColourARGB);
}
#endif
} // namespace MyGUI
#endif // MYGUI_TEXTURE_UTILITY_H_
MyGUI_Colour.h
MYGUI_OBSOLETE
#define MYGUI_OBSOLETE(text)
Definition MyGUI_Diagnostic.h:68
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_RenderFormat.h
MyGUI::texture_utility
Definition MyGUI_TextureUtility.h:15
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:86
MyGUI::texture_utility::toColourARGB
uint32 toColourARGB(const Colour &_colour)
Definition MyGUI_TextureUtility.h:26
MyGUI::texture_utility::getTextureSize
const IntSize & getTextureSize(const std::string &_texture, bool _cache=true)
Definition MyGUI_TextureUtility.cpp:17
MyGUI::texture_utility::toNativeColour
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
Definition MyGUI_TextureUtility.cpp:63
MyGUI::uint32
uint32_t uint32
Definition MyGUI_Types.h:48
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::Colour
Definition MyGUI_Colour.h:17
MyGUI::VertexColourType
Definition MyGUI_RenderFormat.h:16
MyGUI::VertexColourType::ColourARGB
@ ColourARGB
Definition MyGUI_RenderFormat.h:20