Files
Webcam/include/engine/ui/ui_profiler.cpp

25 lines
900 B
C++

/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "ui/ui.h"
#include "core/core_profiler.h"
#include "core/raster_font.h"
#include "core/renderer.h"
using namespace GS;
//------------------------------------------------------------------------------
void S2D::Scene::DrawProfilerText(Renderer &r, Render::RasterFont *font[2], float &x, float &y)
{
Color title_color(0.75, 0.5, 1);
Renderer::WriterConfig config(false);
r.Write(*font[1], "Scene 2D:\n\n", x, y, config, 1, &title_color);
r.Write(*font[0], String::Format("Window count = %d\n\n", item_list.GetCount()), x, y, config, 1, &Color::Yellow);
}
//------------------------------------------------------------------------------