29 lines
682 B
C++
29 lines
682 B
C++
// Copyright (C) 2017 Jérôme Leclercq
|
|
// 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/Core/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/Core/DebugOff.hpp>
|