Documentation for module: Graphics
Former-commit-id: 1757c33318443aade1dc38e16d053240d7dc885c
This commit is contained in:
@@ -7,11 +7,22 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
/*!
|
||||
* \brief Gets the texture of the background
|
||||
* \return Texture of the background
|
||||
*/
|
||||
|
||||
inline const TextureRef& TextureBackground::GetTexture() const
|
||||
{
|
||||
return m_texture;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Sets the texture of the background
|
||||
*
|
||||
* \param texture Texture of the background
|
||||
*/
|
||||
|
||||
inline void TextureBackground::SetTexture(TextureRef texture)
|
||||
{
|
||||
NazaraAssert(!texture || texture->IsValid(), "Invalid texture");
|
||||
@@ -19,6 +30,13 @@ namespace Nz
|
||||
m_texture = std::move(texture);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Creates a new texture background from the arguments
|
||||
* \return A reference to the newly created texture background
|
||||
*
|
||||
* \param args Arguments for the texture background
|
||||
*/
|
||||
|
||||
template<typename... Args>
|
||||
TextureBackgroundRef TextureBackground::New(Args&&... args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user