Sfoglia il codice sorgente

Fixed MinGW64 compile errors.

bkaradzic 12 anni fa
parent
commit
a1294a4d5d

+ 3 - 3
examples/04-mesh/mesh.cpp

@@ -3,6 +3,9 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
+#include <string>
+#include <vector>
+
 #include "common.h"
 
 #include <bgfx.h>
@@ -14,9 +17,6 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <string>
-#include <vector>
-
 static const char* s_shaderPath = NULL;
 static bool s_flipV = false;
 

+ 3 - 2
examples/09-hdr/hdr.cpp

@@ -3,6 +3,9 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
+#include <vector>
+#include <string>
+
 #include "common.h"
 
 #include <bgfx.h>
@@ -12,8 +15,6 @@
 #include "imgui/imgui.h"
 
 #include <string.h>
-#include <vector>
-#include <string>
 
 static const char* s_shaderPath = NULL;
 

+ 3 - 3
examples/12-lod/lod.cpp

@@ -3,6 +3,9 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
+#include <string>
+#include <vector>
+
 #include "common.h"
 
 #include <bgfx.h>
@@ -14,9 +17,6 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <string>
-#include <vector>
-
 static const char* s_shaderPath = NULL;
 static bool s_flipV = false;
 

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

@@ -3,6 +3,9 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
+#include <string>
+#include <vector>
+
 #include "common.h"
 
 #include <bgfx.h>
@@ -12,9 +15,6 @@
 #include "fpumath.h"
 #include "imgui/imgui.h"
 
-#include <string>
-#include <vector>
-
 #define RENDER_VIEWID_RANGE1_PASS_0   1 
 #define RENDER_VIEWID_RANGE1_PASS_1   2 
 #define RENDER_VIEWID_RANGE1_PASS_2   3 

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

@@ -3,13 +3,13 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
-#include "entry_p.h"
-#include "input.h"
-
 #include <memory.h>
 #include <string>
 #include <unordered_map>
 
+#include "entry_p.h"
+#include "input.h"
+
 struct Mouse
 {
 	Mouse()