All done with un-inlining constructors. Onwards to fucking up the entire directory...
[fail.git] / scenegraph / Text.cpp
blob0f237199c9eb04ed5b6e6c94cd05cc8427624457
1 #include "Text.h"
2 #include "RenderContext.h"
4 using namespace awful;
5 using namespace awful::scenegraph;
7 Text::Text( Pointer< Font > pFont, Pointer< Frame > pFrame, Pointer< Material > pMaterial ) :
8 m_pFont( pFont ),
9 m_pMaterial( pMaterial ),
10 m_pFrame( pFrame )
14 Text::Text( Pointer< Font > pFont, Pointer< Frame > pFrame, Pointer< Material > pMaterial,
15 const std::string& Text ) :
16 m_pFont( pFont ),
17 m_pMaterial( pMaterial ),
18 m_pFrame( pFrame ),
19 m_TextString( Text )
23 void Text::evaluate( const Pointer< RenderContext >& pContext )
25 float z = m_pFrame->getLocalToWorld().position().z();
26 pContext->addText( this, z );