MAGE  v0.171.0
Matthias Advanced Game Engine
mage::rendering::anonymous_namespace{texture_factory.cpp} Namespace Reference

Functions

TexturePtr CreateFlatTexture2D (ResourceManager &resource_manager, const std::wstring &guid, U32 color)
 

Function Documentation

◆ CreateFlatTexture2D()

TexturePtr mage::rendering::anonymous_namespace{texture_factory.cpp}::CreateFlatTexture2D ( ResourceManager resource_manager,
const std::wstring &  guid,
U32  color 
)

Creates a flat (single-texel) 2D texture.

Parameters
[in,out]resource_managerA reference to the resource manager.
[in]guidA reference to the globally unique identifier.
[in]colorThe color.
Returns
A pointer to the texture.
Exceptions
ExceptionFailed to create the texture.