void WidgetContainer::drawDebug()
{
	if(g_debugInfo != InfoPanelGuiDebug)
		return;

	BOOST_FOREACH(Widget * zone, m_widgets) {
		drawLineRectangle(Rectf(zone->m_rect), 0.f, Color::red);
	}
示例#2
0
void ThumbnailCursor::render() {
	
	if(m_renderTexture) {
		
		Vec2f offset = Vec2f(0, 0);
		
		if(DANAEMouse.y + config.interface.thumbnailSize.y > g_size.height()) {
			offset.y -= config.interface.thumbnailSize.y;
		}
		
		Vec2f pos = Vec2f(DANAEMouse) + offset;
		
		Rectf rect = Rectf(pos, config.interface.thumbnailSize.x, config.interface.thumbnailSize.y);
		
		EERIEDrawBitmap(rect, 0.001f, m_loadTexture, Color::white);
		drawLineRectangle(rect, 0.01f, Color::white);

		m_renderTexture = NULL;
	}
}
示例#3
0
static void drawDebugBoundingBox(const Rectf & box, Color color = Color::white) {
	if(box.valid()) {
		drawLineRectangle(box, 0.01f, color);
	}
}