mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
fix warning and remove useless includes
This commit is contained in:
parent
a4006cf0ab
commit
61305ed0e4
4 changed files with 3 additions and 9 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <bgfx.h>
|
||||
#include <bx/bx.h>
|
||||
#include <bx/timer.h>
|
||||
#include <bx/countof.h>
|
||||
#include "../common/entry.h"
|
||||
#include "../common/dbg.h"
|
||||
#include "../common/math.h"
|
||||
|
@ -15,7 +16,6 @@
|
|||
#include "../common/font/text_buffer_manager.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int _main_(int /*_argc*/, char** /*_argv*/)
|
||||
{
|
||||
|
@ -154,7 +154,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
//Use transient text to display debug information
|
||||
//Code below is similar to commented code above
|
||||
wchar_t fpsText[64];
|
||||
swprintf(fpsText,L"Frame: % 7.3f[ms]", double(frameTime)*toMs);
|
||||
//swprintf(fpsText,L"Frame: % 7.3f[ms]", double(frameTime)*toMs);
|
||||
swprintf(fpsText, countof(fpsText), L"Frame: % 7.3f[ms]", double(frameTime)*toMs);
|
||||
|
||||
textBufferManager->clearTextBuffer(transientText);
|
||||
textBufferManager->setPenPosition(transientText, 20.0, 4.0f);
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
#include "../common/font/font_manager.h"
|
||||
#include "../common/font/text_buffer_manager.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
inline void mtxTranslate(float* _result, float x, float y, float z)
|
||||
{
|
||||
memset(_result, 0, sizeof(float)*16);
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include <edtaa3/edtaa3func.h>
|
||||
#include <edtaa3/edtaa3func.cpp>
|
||||
#include <math.h>
|
||||
#include <bx/bx.h>
|
||||
|
||||
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
#include "../cube_atlas.h"
|
||||
|
||||
#include <bx/bx.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <stddef.h> /* offsetof */
|
||||
|
||||
#include "vs_font_basic.bin.h"
|
||||
|
|
Loading…
Reference in a new issue