NazaraEngine/include/Nazara/Graphics/RenderElement.inl

29 lines
719 B
C++

// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/RenderElement.hpp>
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Graphics/Debug.hpp>
namespace Nz
{
inline RenderElement::RenderElement(BasicRenderElement elementType) :
RenderElement(SafeCast<UInt8>(elementType))
{
}
inline RenderElement::RenderElement(UInt8 elementType) :
m_elementType(elementType)
{
}
inline UInt8 RenderElement::GetElementType() const
{
return m_elementType;
}
}
#include <Nazara/Graphics/DebugOff.hpp>