grep -rl '<bgfx.h>' . | xargs sed -i 's@<bgfx.h>@<bgfx/bgfx.h>@g'
@@ -4,7 +4,7 @@
*/
#include "common.h"
-#include <bgfx.h>
+#include <bgfx/bgfx.h>
#include <bx/uint32_t.h>
#include "logo.h"
// embedded shaders
#include "vs_metaballs.bin.h"
@@ -5,7 +5,7 @@
#include <bx/timer.h>
#include <bx/string.h>
#include <bx/fpumath.h>
@@ -6,7 +6,7 @@
#include "bgfx_utils.h"
@@ -9,7 +9,7 @@
#include <bx/readerwriter.h>
@@ -19,7 +19,7 @@ using namespace std::tr1;
#include <bx/allocator.h>
@@ -10,7 +10,7 @@
@@ -3,7 +3,7 @@
* License: http://www.opensource.org/licenses/BSD-2-Clause
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <math.h>
#include "entry/entry.h"
@@ -12,7 +12,7 @@
#ifndef __VECTORDISPLAY_H__
#define __VECTORDISPLAY_H__
-#include "bgfx.h"
#include <tinystl/allocator.h>
#include <tinystl/vector.h>
@@ -7,7 +7,7 @@
#include "imgui/imgui.h"
#include "camera.h"
struct u_paramsDataStruct
{
-#include <bgfx.c99.h>
+#include <bgfx/c99/bgfx.h>
#include "../00-helloworld/logo.h"
extern bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset);
#include <tinystl/string.h>
namespace stl = tinystl;
#ifndef BGFX_UTILS_H_HEADER_GUARD
#define BGFX_UTILS_H_HEADER_GUARD
void* load(const char* _filePath, uint32_t* _size = NULL);
void unload(void* _ptr);
#include <limits.h> // INT_MAX
#include <memory.h> // memset
@@ -15,7 +15,7 @@
/// algorithm based on C++ sources provided by Jukka Jylänki at:
/// http://clb.demon.fi/files/RectangleBinPack/
struct AtlasRegion
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_ANDROID
-#include <bgfxplatform.h>
+#include <bgfx/bgfxplatform.h>
#include <bx/thread.h>
#define GLFW_DLL
#include <GLFW/glfw3.h>
#include "dbg.h"
// This is just trivial implementation of GLFW3 integration.
@@ -17,7 +17,7 @@
//# define HAS_METAL_SDK
#endif
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_NACL
#include <string.h>
@@ -29,7 +29,7 @@
#include <ppapi/c/ppp_instance.h>
#include <ppapi/gles2/gl2ext_ppapi.h>
#include "entry.h"
#import <Cocoa/Cocoa.h>
@@ -13,7 +13,7 @@
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_WINDOWS
#if BX_PLATFORM_WINRT
using namespace Windows::ApplicationModel;
@@ -11,7 +11,7 @@
#define XK_LATIN1
#include <X11/keysymdef.h>
#include <X11/Xlib.h> // will include X11 which #defines None... Don't mess with order of includes.
#undef None
@@ -25,7 +25,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
#include "../common.h"
#if USE_EDTAA3
#define FONT_MANAGER_H_HEADER_GUARD
#include <bx/handlealloc.h>
class Atlas;
#include <stddef.h> // offsetof
#include <memory.h> // memcpy
#include <wchar.h> // wcslen
#ifndef IMGUI_H_HEADER_GUARD
#define IMGUI_H_HEADER_GUARD
#include <ocornut-imgui/imgui.h>
#define IMGUI_MBUT_LEFT 0x01
@@ -28,7 +28,7 @@
#include "nanovg.h"
#include <bx/bx.h>
#include <stdint.h> // uint32_t
#include <stdlib.h> // size_t
-#include "bgfxdefines.h"
+#include <bgfx/bgfxdefines.h>
///
#define BGFX_HANDLE(_name) \
typedef enum bgfx_renderer_type
@@ -3217,8 +3217,8 @@ again:
}
} // namespace bgfx
-#include <bgfxplatform.c99.h>
+#include <bgfx/c99/bgfxplatform.h>
BX_STATIC_ASSERT(bgfx::Fatal::Count == bgfx::Fatal::Enum(BGFX_FATAL_COUNT) );
BX_STATIC_ASSERT(bgfx::RendererType::Count == bgfx::RendererType::Enum(BGFX_RENDERER_TYPE_COUNT) );
@@ -19,7 +19,7 @@
# define BX_CONFIG_ALLOCATOR_DEBUG 1
#endif // BGFX_CONFIG_DEBUG
#include "config.h"
#include <inttypes.h>
@@ -108,7 +108,7 @@ namespace bgfx
#include <bx/os.h>
-#include "bgfxplatform.h"
#include "image.h"
#define BGFX_CHUNK_MAGIC_CSH BX_MAKEFOURCC('C', 'S', 'H', 0x2)
#include "bgfx_p.h"
#if BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)
-# include <bgfxplatform.h>
+# include <bgfx/bgfxplatform.h>
# include "renderer_gl.h"
namespace bgfx { namespace gl
#ifndef BGFX_VERTEXDECL_H_HEADER_GUARD
#define BGFX_VERTEXDECL_H_HEADER_GUARD
namespace bgfx
#include <stdlib.h>
#include "../../src/vertexdecl.h"