Browse Source

Moving code around and renaming files.

Branimir Karadžić 8 years ago
parent
commit
3e212b519f

+ 1 - 1
examples/07-callback/callback.cpp

@@ -8,8 +8,8 @@
 #include "imgui/imgui.h"
 #include "imgui/imgui.h"
 
 
 #include <bx/allocator.h>
 #include <bx/allocator.h>
+#include <bx/file.h>
 #include <bx/string.h>
 #include <bx/string.h>
-#include <bx/crtimpl.h>
 
 
 #include "aviwriter.h"
 #include "aviwriter.h"
 
 

+ 1 - 1
examples/10-font/font.cpp

@@ -8,7 +8,7 @@
 
 
 #include <bx/timer.h>
 #include <bx/timer.h>
 #include <bx/string.h>
 #include <bx/string.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 
 
 #include "font/font_manager.h"
 #include "font/font_manager.h"
 #include "font/text_buffer_manager.h"
 #include "font/text_buffer_manager.h"

+ 1 - 1
examples/11-fontsdf/fontsdf.cpp

@@ -8,7 +8,7 @@
 
 
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 #include <bx/timer.h>
 #include <bx/timer.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 
 
 #include "font/font_manager.h"
 #include "font/font_manager.h"
 #include "font/text_metrics.h"
 #include "font/text_metrics.h"

+ 1 - 1
examples/13-stencil/stencil.cpp

@@ -8,8 +8,8 @@
 
 
 #include "common.h"
 #include "common.h"
 #include "bgfx_utils.h"
 #include "bgfx_utils.h"
+#include <bx/file.h>
 
 
-#include <bx/crtimpl.h>
 #include "camera.h"
 #include "camera.h"
 #include "imgui/imgui.h"
 #include "imgui/imgui.h"
 
 

+ 2 - 2
examples/14-shadowvolumes/shadowvolumes.cpp

@@ -18,8 +18,8 @@ namespace stl = tinystl;
 #include <bx/allocator.h>
 #include <bx/allocator.h>
 #include <bx/hash.h>
 #include <bx/hash.h>
 #include <bx/simd_t.h>
 #include <bx/simd_t.h>
-#include <bx/fpumath.h>
-#include <bx/crtimpl.h>
+#include <bx/math.h>
+#include <bx/file.h>
 #include "entry/entry.h"
 #include "entry/entry.h"
 #include "camera.h"
 #include "camera.h"
 #include "imgui/imgui.h"
 #include "imgui/imgui.h"

+ 1 - 1
examples/15-shadowmaps-simple/shadowmaps_simple.cpp

@@ -12,7 +12,7 @@
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 #include <bx/timer.h>
 #include <bx/timer.h>
 #include <bx/readerwriter.h>
 #include <bx/readerwriter.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include "entry/entry.h"
 #include "entry/entry.h"
 #include "bgfx_utils.h"
 #include "bgfx_utils.h"
 #include "imgui/imgui.h"
 #include "imgui/imgui.h"

+ 2 - 2
examples/16-shadowmaps/shadowmaps.cpp

@@ -12,8 +12,8 @@
 
 
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 #include <bx/timer.h>
 #include <bx/timer.h>
-#include <bx/fpumath.h>
-#include <bx/crtimpl.h>
+#include <bx/math.h>
+#include <bx/file.h>
 #include "entry/entry.h"
 #include "entry/entry.h"
 #include "camera.h"
 #include "camera.h"
 #include "imgui/imgui.h"
 #include "imgui/imgui.h"

+ 1 - 1
examples/23-vectordisplay/vectordisplay.cpp

@@ -12,7 +12,7 @@
 #include <float.h>  // FLT_EPSILON
 #include <float.h>  // FLT_EPSILON
 #include <alloca.h> // alloca
 #include <alloca.h> // alloca
 
 
-#include <bx/fpumath.h>
+#include <bx/math.h>
 
 
 #include "vectordisplay.h"
 #include "vectordisplay.h"
 #include "bgfx_utils.h"
 #include "bgfx_utils.h"

+ 1 - 1
examples/27-terrain/terrain.cpp

@@ -10,7 +10,7 @@
 #include "bounds.h"
 #include "bounds.h"
 #include <bx/allocator.h>
 #include <bx/allocator.h>
 #include <bx/debug.h>
 #include <bx/debug.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 
 
 namespace
 namespace
 {
 {

+ 1 - 1
examples/common/bgfx_utils.cpp

@@ -13,7 +13,7 @@ namespace stl = tinystl;
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 #include <bx/commandline.h>
 #include <bx/commandline.h>
 #include <bx/endian.h>
 #include <bx/endian.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/readerwriter.h>
 #include <bx/readerwriter.h>
 #include <bx/string.h>
 #include <bx/string.h>
 #include "entry/entry.h"
 #include "entry/entry.h"

+ 1 - 1
examples/common/bounds.cpp

@@ -4,7 +4,7 @@
  */
  */
 
 
 #include <bx/rng.h>
 #include <bx/rng.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include "bounds.h"
 #include "bounds.h"
 
 
 void aabbToObb(Obb& _obb, const Aabb& _aabb)
 void aabbToObb(Obb& _obb, const Aabb& _aabb)

+ 1 - 1
examples/common/camera.cpp

@@ -4,7 +4,7 @@
  */
  */
 
 
 #include <bx/timer.h>
 #include <bx/timer.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include "camera.h"
 #include "camera.h"
 #include "entry/entry.h"
 #include "entry/entry.h"
 #include "entry/cmd.h"
 #include "entry/cmd.h"

+ 1 - 1
examples/common/common.h

@@ -7,7 +7,7 @@
 #define COMMON_H_HEADER_GUARD
 #define COMMON_H_HEADER_GUARD
 
 
 #include <bx/timer.h>
 #include <bx/timer.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 
 
 #include "entry/entry.h"
 #include "entry/entry.h"
 
 

+ 1 - 2
examples/common/debugdraw/debugdraw.cpp

@@ -9,10 +9,9 @@
 #include "../bgfx_utils.h"
 #include "../bgfx_utils.h"
 #include "../packrect.h"
 #include "../packrect.h"
 
 
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/sort.h>
 #include <bx/sort.h>
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
-#include <bx/crtimpl.h>
 #include <bx/handlealloc.h>
 #include <bx/handlealloc.h>
 
 
 struct DebugVertex
 struct DebugVertex

+ 2 - 3
examples/common/entry/entry.cpp

@@ -4,10 +4,9 @@
  */
  */
 
 
 #include <bx/bx.h>
 #include <bx/bx.h>
-#include <bgfx/bgfx.h>
-#include <bx/filepath.h>
-#include <bx/crtimpl.h>
+#include <bx/file.h>
 #include <bx/sort.h>
 #include <bx/sort.h>
+#include <bgfx/bgfx.h>
 
 
 #include <time.h>
 #include <time.h>
 
 

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

@@ -30,7 +30,6 @@ BX_PRAGMA_DIAGNOSTIC_POP()
 #include <bx/thread.h>
 #include <bx/thread.h>
 #include <bx/handlealloc.h>
 #include <bx/handlealloc.h>
 #include <bx/readerwriter.h>
 #include <bx/readerwriter.h>
-#include <bx/crtimpl.h>
 #include <tinystl/allocator.h>
 #include <tinystl/allocator.h>
 #include <tinystl/string.h>
 #include <tinystl/string.h>
 
 

+ 1 - 2
examples/common/imgui/imgui.cpp

@@ -6,9 +6,8 @@
 #include <bgfx/bgfx.h>
 #include <bgfx/bgfx.h>
 #include <bgfx/embedded_shader.h>
 #include <bgfx/embedded_shader.h>
 #include <bx/allocator.h>
 #include <bx/allocator.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/timer.h>
 #include <bx/timer.h>
-#include <bx/crtimpl.h>
 #include <ocornut-imgui/imgui.h>
 #include <ocornut-imgui/imgui.h>
 
 
 #include "imgui.h"
 #include "imgui.h"

+ 0 - 1
examples/common/nanovg/nanovg_bgfx.cpp

@@ -31,7 +31,6 @@
 
 
 #include <bx/bx.h>
 #include <bx/bx.h>
 #include <bx/allocator.h>
 #include <bx/allocator.h>
-#include <bx/crtimpl.h>
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
 
 
 BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4244); // warning C4244: '=' : conversion from '' to '', possible loss of data
 BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4244); // warning C4244: '=' : conversion from '' to '', possible loss of data

+ 0 - 1
examples/common/ps/particle_system.cpp

@@ -11,7 +11,6 @@
 #include "../packrect.h"
 #include "../packrect.h"
 
 
 #include <bx/easing.h>
 #include <bx/easing.h>
-#include <bx/crtimpl.h>
 #include <bx/handlealloc.h>
 #include <bx/handlealloc.h>
 
 
 #include "vs_particle.bin.h"
 #include "vs_particle.bin.h"

+ 1 - 1
src/bgfx.cpp

@@ -19,7 +19,7 @@
 #	include <remotery/lib/Remotery.c>
 #	include <remotery/lib/Remotery.c>
 #endif // BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB
 #endif // BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB
 
 
-#include <bx/crtimpl.h>
+#include <bx/file.h>
 #include <bx/mutex.h>
 #include <bx/mutex.h>
 
 
 #include "topology.h"
 #include "topology.h"

+ 1 - 1
src/bgfx_p.h

@@ -117,7 +117,7 @@ namespace bgfx
 
 
 #include <bx/bx.h>
 #include <bx/bx.h>
 #include <bx/debug.h>
 #include <bx/debug.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/float4x4_t.h>
 #include <bx/float4x4_t.h>
 #include <bx/endian.h>
 #include <bx/endian.h>
 #include <bx/handlealloc.h>
 #include <bx/handlealloc.h>

+ 1 - 1
src/topology.cpp

@@ -5,7 +5,7 @@
 
 
 #include <bx/allocator.h>
 #include <bx/allocator.h>
 #include <bx/debug.h>
 #include <bx/debug.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/sort.h>
 #include <bx/sort.h>
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
 
 

+ 2 - 2
tools/geometryc/geometryc.cpp

@@ -54,8 +54,8 @@ namespace stl = tinystl;
 #include <bx/timer.h>
 #include <bx/timer.h>
 #include <bx/hash.h>
 #include <bx/hash.h>
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
-#include <bx/fpumath.h>
-#include <bx/crtimpl.h>
+#include <bx/math.h>
+#include <bx/file.h>
 
 
 #include "bounds.h"
 #include "bounds.h"
 
 

+ 1 - 1
tools/shaderc/shaderc.h

@@ -61,7 +61,7 @@ namespace bgfx
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
 #include <bx/string.h>
 #include <bx/string.h>
 #include <bx/hash.h>
 #include <bx/hash.h>
-#include <bx/crtimpl.h>
+#include <bx/file.h>
 #include "../../src/vertexdecl.h"
 #include "../../src/vertexdecl.h"
 
 
 namespace bgfx
 namespace bgfx

+ 3 - 2
tools/texturev/texturev.cpp

@@ -9,7 +9,7 @@
 #include <bx/os.h>
 #include <bx/os.h>
 #include <bx/filepath.h>
 #include <bx/filepath.h>
 #include <bx/uint32_t.h>
 #include <bx/uint32_t.h>
-#include <bx/fpumath.h>
+#include <bx/math.h>
 #include <bx/easing.h>
 #include <bx/easing.h>
 #include <entry/entry.h>
 #include <entry/entry.h>
 #include <entry/input.h>
 #include <entry/input.h>
@@ -19,7 +19,8 @@
 
 
 #include <dirent.h>
 #include <dirent.h>
 
 
-#include <bx/crtimpl.h>
+#include <bx/file.h>
+#include <bx/process.h>
 
 
 #include <tinystl/allocator.h>
 #include <tinystl/allocator.h>
 #include <tinystl/vector.h>
 #include <tinystl/vector.h>