Exemplo n.º 1
0
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);
	}
}
Exemplo n.º 2
0
inline void C2DRectSet::Draw( int start_rect_index, int num_rects, const TextureHandle& texture )
{
	SetBasicRenderStates();
	m_pImpl->Draw( start_rect_index, num_rects, texture );
}
Exemplo n.º 3
0
	inline void Draw( const TextureHandle& texture ) { m_pImpl->Draw( 0, GetNumRects(), texture ); }
Exemplo n.º 4
0
inline void C2DRectSet::Draw( int start_rect_index, int num_rects )
{
	SetBasicRenderStates();
	m_pImpl->Draw( start_rect_index, num_rects );
}
Exemplo n.º 5
0
	/// renders all the rects
	inline void Draw() { SetBasicRenderStates(); m_pImpl->Draw( 0, GetNumRects() ); }