Graphics: Add RenderElement and ElementRenderer (WIP)
This commit is contained in:
24
include/Nazara/Graphics/RenderElement.inl
Normal file
24
include/Nazara/Graphics/RenderElement.inl
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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/Error.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline RenderElement::RenderElement(BasicRenderElement elementType) :
|
||||
RenderElement(static_cast<UInt8>(elementType))
|
||||
{
|
||||
}
|
||||
|
||||
inline RenderElement::RenderElement(UInt8 elementType) :
|
||||
m_elementType(elementType)
|
||||
{
|
||||
}
|
||||
|
||||
inline UInt8 RenderElement::GetElementType() const
|
||||
{
|
||||
return m_elementType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user