Explorar o código

Merge branch 'master' of github.com:bkaradzic/bgfx

Branimir Karadžić %!s(int64=10) %!d(string=hai) anos
pai
achega
91c87e2149
Modificáronse 5 ficheiros con 27 adicións e 29 borrados
  1. 0 8
      scripts/bgfx.lua
  2. 3 9
      scripts/example-common.lua
  3. 0 6
      scripts/genie.lua
  4. 0 6
      scripts/shaderc.lua
  5. 24 0
      src/renderer_gl.h

+ 0 - 8
scripts/bgfx.lua

@@ -58,14 +58,6 @@ function bgfxProject(_name, _kind, _defines)
 			}
 			}
 		end
 		end
 
 
-		if (_OPTIONS["vs"] == "vs2012-xp")
-		or (_OPTIONS["vs"] == "vs2013-xp") then
-			configuration { "vs201*" }
-				includedirs {
-					"$(DXSDK_DIR)/include",
-				}
-		end
-
 		configuration { "Debug" }
 		configuration { "Debug" }
 			defines {
 			defines {
 				"BGFX_CONFIG_DEBUG=1",
 				"BGFX_CONFIG_DEBUG=1",

+ 3 - 9
scripts/example-common.lua

@@ -61,16 +61,10 @@ project ("example-common")
 		}
 		}
 	end
 	end
 
 
-	configuration { "vs2008" }
-		includedirs {
-			"$(DXSDK_DIR)/include",
-		}
-	if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then
-	configuration { "vs201*" }
-		includedirs {
-			"$(DXSDK_DIR)/include",
+	configuration { "osx or ios*" }
+		files {
+			path.join(BGFX_DIR, "examples/common/**.mm"),
 		}
 		}
-	end
 
 
 	configuration { "winphone8* or winstore8*"}
 	configuration { "winphone8* or winstore8*"}
 		linkoptions {
 		linkoptions {

+ 0 - 6
scripts/genie.lua

@@ -305,9 +305,6 @@ function exampleProject(_name)
 		}
 		}
 
 
 	configuration { "osx" }
 	configuration { "osx" }
-		files {
-			path.join(BGFX_DIR, "examples/common/**.mm"),
-		}
 		links {
 		links {
 			"Cocoa.framework",
 			"Cocoa.framework",
 			"OpenGL.framework",
 			"OpenGL.framework",
@@ -315,9 +312,6 @@ function exampleProject(_name)
 
 
 	configuration { "ios*" }
 	configuration { "ios*" }
 		kind "ConsoleApp"
 		kind "ConsoleApp"
-		files {
-			path.join(BGFX_DIR, "examples/common/**.mm"),
-		}
 		linkoptions {
 		linkoptions {
 			"-framework CoreFoundation",
 			"-framework CoreFoundation",
 			"-framework Foundation",
 			"-framework Foundation",

+ 0 - 6
scripts/shaderc.lua

@@ -55,12 +55,6 @@ project "shaderc"
 			path.join(GLSL_OPTIMIZER, "include/c99"),
 			path.join(GLSL_OPTIMIZER, "include/c99"),
 		}
 		}
 
 
-	configuration { "vs*" }
-		includedirs {
-			"$(DXSDK_DIR)/include",
-		}
-
-
 	configuration { "vs* or mingw*" }
 	configuration { "vs* or mingw*" }
 		links {
 		links {
 			"d3dcompiler",
 			"d3dcompiler",

+ 24 - 0
src/renderer_gl.h

@@ -233,6 +233,30 @@ typedef uint64_t GLuint64;
 #	define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
 #	define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
 #endif // GL_UNSIGNED_INT_10F_11F_11F_REV
 #endif // GL_UNSIGNED_INT_10F_11F_11F_REV
 
 
+#ifndef GL_R8_SNORM
+#	define GL_R8_SNORM 0x8F94
+#endif // GL_R8_SNORM
+
+#ifndef GL_RG8_SNORM
+#	define GL_RG8_SNORM 0x8F95
+#endif // GL_RG8_SNORM
+
+#ifndef GL_RGBA8_SNORM
+#	define GL_RGBA8_SNORM 0x8F97
+#endif // GL_RGBA8_SNORM
+
+#ifndef GL_R16_SNORM
+#	define GL_R16_SNORM 0x8F98
+#endif // GL_R16_SNORM
+
+#ifndef GL_RG16_SNORM
+#	define GL_RG16_SNORM 0x8F99
+#endif // GL_RG16_SNORM
+
+#ifndef GL_RGBA16_SNORM
+#	define GL_RGBA16_SNORM 0x8F9B
+#endif // GL_RGBA16_SNORM
+
 #ifndef GL_COMPRESSED_RGB_S3TC_DXT1_EXT
 #ifndef GL_COMPRESSED_RGB_S3TC_DXT1_EXT
 #	define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
 #	define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
 #endif // GL_COMPRESSED_RGB_S3TC_DXT1_EXT
 #endif // GL_COMPRESSED_RGB_S3TC_DXT1_EXT