From fadb547f630d377b1ff69a7ab09f852855930c56 Mon Sep 17 00:00:00 2001 From: Branimir Karadžić Date: Mon, 2 Jan 2017 14:05:50 +0100 Subject: Updated BGFX (nw) --- 3rdparty/bgfx/examples/00-helloworld/helloworld.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '3rdparty/bgfx/examples/00-helloworld/helloworld.cpp') diff --git a/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp b/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp index 987ec881b8e..bfd2a1c67c6 100644 --- a/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp +++ b/3rdparty/bgfx/examples/00-helloworld/helloworld.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 Branimir Karadzic. All rights reserved. + * Copyright 2011-2017 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ @@ -65,6 +65,16 @@ class ExampleHelloWorld : public entry::AppI bgfx::dbgTextPrintf(0, 1, 0x4f, "bgfx/examples/00-helloworld"); bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Initialization and debug text."); + bgfx::dbgTextPrintf(0, 4, 0x0f, "Color can be changed with ANSI \x1b[9;me\x1b[10;ms\x1b[11;mc\x1b[12;ma\x1b[13;mp\x1b[14;me\x1b[0m code too."); + + const bgfx::Stats* stats = bgfx::getStats(); + bgfx::dbgTextPrintf(0, 6, 0x0f, "Backbuffer %dW x %dH in pixels, debug text %dW x %dH in characters." + , stats->width + , stats->height + , stats->textWidth + , stats->textHeight + ); + // Advance to next frame. Rendering thread will be kicked to // process submitted rendering primitives. bgfx::frame(); -- cgit v1.2.3-70-g09d2