void CSFMLLog::render(boost::shared_ptr<sf::RenderWindow> renderTarget) { sf::String text; for(size_t i = 0; i < m_queue.size() && i < 5; i++) { text.SetText(m_queue[i]); text.SetFont(sf::Font::GetDefaultFont()); text.SetSize(15); text.SetPosition(0.f, (4.f-i)*text.GetSize()); text.SetColor(sf::Color::Black); renderTarget->Draw(text); } }
inline void C2DRectSet::Draw( int start_rect_index, int num_rects, const TextureHandle& texture ) { SetBasicRenderStates(); m_pImpl->Draw( start_rect_index, num_rects, texture ); }
inline void Draw( const TextureHandle& texture ) { m_pImpl->Draw( 0, GetNumRects(), texture ); }
inline void C2DRectSet::Draw( int start_rect_index, int num_rects ) { SetBasicRenderStates(); m_pImpl->Draw( start_rect_index, num_rects ); }
/// renders all the rects inline void Draw() { SetBasicRenderStates(); m_pImpl->Draw( 0, GetNumRects() ); }