예제 #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() ); }