فهرست منبع

Rename RGB_8 and RGBA_8 formats

Daniele Bartolini 11 سال پیش
والد
کامیت
d47ddd0f0e

+ 2 - 2
engine/renderers/backend/PixelFormat.h

@@ -42,11 +42,11 @@ public:
 	{
 		switch (format)
 		{
-			case PixelFormat::RGB_8:
+			case PixelFormat::R8G8B8:
 			{
 				return 3;
 			}
-			case PixelFormat::RGBA_8:
+			case PixelFormat::R8G8B8A8:
 			{
 				return 4;
 			}

+ 2 - 2
engine/renderers/backend/RendererTypes.h

@@ -135,8 +135,8 @@ struct PixelFormat
 		DXT3,
 		DXT5,
 
-		RGB_8,
-		RGBA_8,
+		R8G8B8,
+		R8G8B8A8,
 
 		D16,
 		D24,

+ 4 - 4
engine/renderers/backend/gl/GLRenderer.cpp

@@ -158,13 +158,13 @@ const TextureFormatInfo TEXTURE_FORMAT_TABLE[PixelFormat::COUNT] =
 //-----------------------------------------------------------------------------
 static bool is_compressed(PixelFormat::Enum fmt)
 {
-	return fmt < PixelFormat::RGB_8;
+	return fmt < PixelFormat::R8G8B8;
 }
 
 //-----------------------------------------------------------------------------
 static bool is_color(PixelFormat::Enum fmt)
 {
-	return fmt >= PixelFormat::RGB_8 && fmt < PixelFormat::D16;
+	return fmt >= PixelFormat::R8G8B8 && fmt < PixelFormat::D16;
 }
 
 //-----------------------------------------------------------------------------
@@ -180,8 +180,8 @@ static uint32_t PIXEL_FORMAT_SIZES[PixelFormat::COUNT] =
 	16, // DXT3,
 	16, // DXT5,
 
-	3, // RGB_8,
-	4, // RGBA_8,
+	3, // R8G8B8,
+	4, // R8G8B8A8,
 
 	2, // D16,
 	3, // D24,