Browse Source

Renamed bgfxdefines.h to defines.h, and bgfxplatform.h to platform.h.

Branimir Karadžić 9 years ago
parent
commit
8da9e54957

+ 1 - 1
examples/common/entry/entry_android.cpp

@@ -7,7 +7,7 @@
 
 #if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_ANDROID
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <stdio.h>
 #include <bx/thread.h>

+ 1 - 1
examples/common/entry/entry_glfw.cpp

@@ -26,7 +26,7 @@
 #endif //
 #include <GLFW/glfw3native.h>
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <bx/thread.h>
 #include <bx/handlealloc.h>

+ 1 - 1
examples/common/entry/entry_ios.mm

@@ -17,7 +17,7 @@
 //#   define HAS_METAL_SDK
 #endif
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <bx/uint32_t.h>
 #include <bx/thread.h>

+ 1 - 2
examples/common/entry/entry_nacl.cpp

@@ -7,7 +7,7 @@
 
 #if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_NACL
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -29,7 +29,6 @@
 #include <ppapi/c/ppp_instance.h>
 #include <ppapi/gles2/gl2ext_ppapi.h>
 
-#include <bgfx/bgfxplatform.h>
 #include <bx/thread.h>
 
 #include "entry.h"

+ 1 - 1
examples/common/entry/entry_osx.mm

@@ -9,7 +9,7 @@
 
 #import <Cocoa/Cocoa.h>
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <bx/uint32_t.h>
 #include <bx/thread.h>

+ 1 - 1
examples/common/entry/entry_sdl.cpp

@@ -20,7 +20,7 @@ BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Wextern-c-compat")
 #include <SDL2/SDL_syswm.h>
 BX_PRAGMA_DIAGNOSTIC_POP()
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 #if defined(None) // X11 defines this...
 #	undef None
 #endif // defined(None)

+ 1 - 1
examples/common/entry/entry_windows.cpp

@@ -7,7 +7,7 @@
 
 #if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_WINDOWS
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #include <bx/uint32_t.h>
 #include <bx/thread.h>

+ 1 - 1
examples/common/entry/entry_winrt.cx

@@ -7,7 +7,7 @@
 
 #if BX_PLATFORM_WINRT || BX_PLATFORM_XBOXONE
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 #include <bx/thread.h>
 #include <bx/fpumath.h>
 #include <Unknwn.h>

+ 1 - 1
examples/common/entry/entry_x11.cpp

@@ -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.
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 
 #undef None
 #include <bx/thread.h>

+ 1 - 1
include/bgfx/bgfx.h

@@ -10,7 +10,7 @@
 #include <stdint.h> // uint32_t
 #include <stdlib.h> // NULL
 
-#include <bgfx/bgfxdefines.h>
+#include <bgfx/defines.h>
 
 ///
 #define BGFX_HANDLE(_name) \

+ 1 - 1
include/bgfx/c99/bgfx.h

@@ -39,7 +39,7 @@
 #   define BGFX_C_API BGFX_SHARED_LIB_API
 #endif // defined(__cplusplus)
 
-#include <bgfx/bgfxdefines.h>
+#include <bgfx/defines.h>
 
 typedef enum bgfx_renderer_type
 {

+ 0 - 0
include/bgfx/c99/bgfxplatform.h → include/bgfx/c99/platform.h


+ 0 - 0
include/bgfx/bgfxdefines.h → include/bgfx/defines.h


+ 0 - 0
include/bgfx/bgfxplatform.h → include/bgfx/platform.h


+ 1 - 1
src/bgfx.cpp

@@ -3850,7 +3850,7 @@ error:
 } // namespace bgfx
 
 #include <bgfx/c99/bgfx.h>
-#include <bgfx/c99/bgfxplatform.h>
+#include <bgfx/c99/platform.h>
 
 #define FLAGS_MASK_TEST(_flags, _mask) ( (_flags) == ( (_flags) & (_mask) ) )
 

+ 1 - 1
src/bgfx_p.h

@@ -139,7 +139,7 @@ namespace bgfx
 #include <bx/os.h>
 #include <bx/maputil.h>
 
-#include <bgfx/bgfxplatform.h>
+#include <bgfx/platform.h>
 #include "image.h"
 #include "shader.h"
 

+ 1 - 1
src/glcontext_ppapi.cpp

@@ -6,7 +6,7 @@
 #include "bgfx_p.h"
 
 #if BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)
-#	include <bgfx/bgfxplatform.h>
+#	include <bgfx/platform.h>
 #	include "renderer_gl.h"
 
 namespace bgfx { namespace gl