Cleanup.
This commit is contained in:
parent
97b4fec1ff
commit
3f1c51203b
@ -653,11 +653,11 @@ void help(const char* _error = NULL)
|
||||
{
|
||||
if (NULL != _error)
|
||||
{
|
||||
fprintf(stderr, "Error:\n%s\n\n", _error);
|
||||
bx::printf("Error:\n%s\n\n", _error);
|
||||
}
|
||||
|
||||
fprintf(stderr
|
||||
, "geometryv, bgfx geometry viewer tool, version %d.%d.%d.\n"
|
||||
bx::printf(
|
||||
"geometryv, bgfx geometry viewer tool, version %d.%d.%d.\n"
|
||||
"Copyright 2019-2019 Attila Kocsis. All rights reserved.\n"
|
||||
"License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause\n\n"
|
||||
, BGFX_GEOMETRYV_VERSION_MAJOR
|
||||
@ -665,19 +665,19 @@ void help(const char* _error = NULL)
|
||||
, BGFX_API_VERSION
|
||||
);
|
||||
|
||||
fprintf(stderr
|
||||
, "Usage: geometryv <file path>\n"
|
||||
bx::printf(
|
||||
"Usage: geometryv <file path>\n"
|
||||
"\n"
|
||||
"Supported input file types:\n"
|
||||
);
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(s_supportedExt); ++ii)
|
||||
{
|
||||
fprintf(stderr, " *.%s\n", s_supportedExt[ii]);
|
||||
bx::printf(" *.%s\n", s_supportedExt[ii]);
|
||||
}
|
||||
|
||||
fprintf(stderr
|
||||
, "\n"
|
||||
bx::printf(
|
||||
"\n"
|
||||
"Options:\n"
|
||||
" -h, --help Help.\n"
|
||||
" -v, --version Version information only.\n"
|
||||
@ -692,8 +692,8 @@ int _main_(int _argc, char** _argv)
|
||||
|
||||
if (cmdLine.hasArg('v', "version") )
|
||||
{
|
||||
fprintf(stderr
|
||||
, "geometryv, bgfx geometry viewer tool, version %d.%d.%d.\n"
|
||||
bx::printf(
|
||||
"geometryv, bgfx geometry viewer tool, version %d.%d.%d.\n"
|
||||
, BGFX_GEOMETRYV_VERSION_MAJOR
|
||||
, BGFX_GEOMETRYV_VERSION_MINOR
|
||||
, BGFX_API_VERSION
|
||||
@ -1203,7 +1203,9 @@ int _main_(int _argc, char** _argv)
|
||||
numIndices += (uint32_t)it->m_numIndices;
|
||||
}
|
||||
|
||||
bx::stringPrintf(title, "%s (g %d, p %d, v %d, i %d)"
|
||||
bx::stringPrintf(
|
||||
title
|
||||
, "%s (g %d, p %d, v %d, i %d)"
|
||||
, fp.getCPtr()
|
||||
, mesh->m_groups.size()
|
||||
, numPrimitives
|
||||
@ -1253,6 +1255,7 @@ int _main_(int _argc, char** _argv)
|
||||
DebugDrawEncoder dde;
|
||||
dde.begin(SCENE_VIEW_ID);
|
||||
dde.drawAxis(0.0f, 0.0f, 0.0f);
|
||||
dde.drawGrid(Axis::Y, {0.0f, 0.0f, 0.0f});
|
||||
dde.end();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user