fix warning and remove useless includes

This commit is contained in:
Jeremie Roy 2013-05-15 15:12:25 +02:00
parent a4006cf0ab
commit 61305ed0e4
4 changed files with 3 additions and 9 deletions

View file

@ -6,6 +6,7 @@
#include <bgfx.h> #include <bgfx.h>
#include <bx/bx.h> #include <bx/bx.h>
#include <bx/timer.h> #include <bx/timer.h>
#include <bx/countof.h>
#include "../common/entry.h" #include "../common/entry.h"
#include "../common/dbg.h" #include "../common/dbg.h"
#include "../common/math.h" #include "../common/math.h"
@ -15,7 +16,6 @@
#include "../common/font/text_buffer_manager.h" #include "../common/font/text_buffer_manager.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
int _main_(int /*_argc*/, char** /*_argv*/) int _main_(int /*_argc*/, char** /*_argv*/)
{ {
@ -154,7 +154,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
//Use transient text to display debug information //Use transient text to display debug information
//Code below is similar to commented code above //Code below is similar to commented code above
wchar_t fpsText[64]; 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->clearTextBuffer(transientText);
textBufferManager->setPenPosition(transientText, 20.0, 4.0f); textBufferManager->setPenPosition(transientText, 20.0, 4.0f);

View file

@ -14,9 +14,6 @@
#include "../common/font/font_manager.h" #include "../common/font/font_manager.h"
#include "../common/font/text_buffer_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) inline void mtxTranslate(float* _result, float x, float y, float z)
{ {
memset(_result, 0, sizeof(float)*16); memset(_result, 0, sizeof(float)*16);

View file

@ -21,7 +21,6 @@
#include <edtaa3/edtaa3func.h> #include <edtaa3/edtaa3func.h>
#include <edtaa3/edtaa3func.cpp> #include <edtaa3/edtaa3func.cpp>
#include <math.h>
#include <bx/bx.h> #include <bx/bx.h>

View file

@ -7,9 +7,6 @@
#include "../cube_atlas.h" #include "../cube_atlas.h"
#include <bx/bx.h> #include <bx/bx.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stddef.h> /* offsetof */ #include <stddef.h> /* offsetof */
#include "vs_font_basic.bin.h" #include "vs_font_basic.bin.h"