2 #include "RenderContext.h"
5 using namespace awful::scenegraph
;
7 Text::Text( Pointer
< Font
> pFont
, Pointer
< Frame
> pFrame
, Pointer
< Material
> pMaterial
) :
9 m_pMaterial( pMaterial
),
14 Text::Text( Pointer
< Font
> pFont
, Pointer
< Frame
> pFrame
, Pointer
< Material
> pMaterial
,
15 const std::string
& Text
) :
17 m_pMaterial( pMaterial
),
23 void Text::evaluate( const Pointer
< RenderContext
>& pContext
)
25 float z
= m_pFrame
->getLocalToWorld().position().z();
26 pContext
->addText( this, z
);