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