Added bgfx::dbgTextImage API for drawing directly into debug text buffer.
This commit is contained in:
parent
584a32038f
commit
254efb5a3d
7 changed files with 417 additions and 14 deletions
examples/00-helloworld
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "common.h"
|
||||
#include <bgfx.h>
|
||||
#include <bx/uint32_t.h>
|
||||
#include "logo.h"
|
||||
|
||||
int _main_(int /*_argc*/, char** /*_argv*/)
|
||||
{
|
||||
|
@ -38,6 +40,13 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
|
||||
// Use debug font to print information about this example.
|
||||
bgfx::dbgTextClear();
|
||||
bgfx::dbgTextImage(bx::uint16_max(width/2/8, 20)-20
|
||||
, bx::uint16_max(height/2/16, 6)-6
|
||||
, 40
|
||||
, 12
|
||||
, s_logo
|
||||
, 160
|
||||
);
|
||||
bgfx::dbgTextPrintf(0, 1, 0x4f, "bgfx/examples/00-helloworld");
|
||||
bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Initialization and debug text.");
|
||||
|
||||
|
|
Reference in a new issue