Browse Source

Added depth texture formats.

Mark Sibly 8 years ago
parent
commit
1a436d8913
1 changed files with 18 additions and 1 deletions
  1. 18 1
      modules/std/graphics/pixelformat.monkey2

+ 18 - 1
modules/std/graphics/pixelformat.monkey2

@@ -15,7 +15,19 @@ Namespace std.graphics
 #end
 #end
 Enum PixelFormat
 Enum PixelFormat
 
 
-	Unknown,I8,A8,IA16,RGB24,RGBA32
+	Unknown
+	I8
+	A8
+	IA16
+	RGB24
+	RGBA32
+
+	RGBA16F
+	RGBA32F
+	
+	Depth16
+	Depth24
+	Depth32F
 
 
 End
 End
 
 
@@ -29,6 +41,11 @@ Function PixelFormatDepth:Int( format:PixelFormat )
 	Case PixelFormat.IA16 Return 2
 	Case PixelFormat.IA16 Return 2
 	Case PixelFormat.RGB24 Return 3
 	Case PixelFormat.RGB24 Return 3
 	Case PixelFormat.RGBA32 Return 4
 	Case PixelFormat.RGBA32 Return 4
+	Case PixelFormat.RGBA16F Return 8
+	Case PixelFormat.RGBA32F Return 16
+	Case PixelFormat.Depth16 Return 2
+	Case PixelFormat.Depth24 Return 4
+	Case PixelFormat.Depth32F Return 4
 	End
 	End
 	
 	
 	Return 0
 	Return 0