|
|
@@ -7,6 +7,7 @@
|
|
|
#include <bx/bx.h>
|
|
|
#include <bx/timer.h>
|
|
|
#include <bx/countof.h>
|
|
|
+#include <bx/string.h>
|
|
|
#include "../common/entry.h"
|
|
|
#include "../common/dbg.h"
|
|
|
#include "../common/math.h"
|
|
|
@@ -18,12 +19,6 @@
|
|
|
#include <stdio.h>
|
|
|
#include <wchar.h>
|
|
|
|
|
|
-#if defined(__MINGW32__)
|
|
|
-# define swnprintf(_out, _count, _format, ...) swprintf(_out, _format, ##__VA_ARGS__)
|
|
|
-#else
|
|
|
-# define swnprintf(_out, _count, _format, ...) swprintf(_out, _count, _format, ##__VA_ARGS__)
|
|
|
-#endif // defined(__MINGW__)
|
|
|
-
|
|
|
int _main_(int /*_argc*/, char** /*_argv*/)
|
|
|
{
|
|
|
uint32_t width = 1280;
|
|
|
@@ -151,7 +146,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|
|
|
|
|
// Use transient text to display debug information.
|
|
|
wchar_t fpsText[64];
|
|
|
- swnprintf(fpsText, countof(fpsText), L"Frame: % 7.3f[ms]", double(frameTime) * toMs);
|
|
|
+ bx::swnprintf(fpsText, countof(fpsText), L"Frame: % 7.3f[ms]", double(frameTime) * toMs);
|
|
|
|
|
|
textBufferManager->clearTextBuffer(transientText);
|
|
|
textBufferManager->setPenPosition(transientText, 20.0, 4.0f);
|