From ab80c7d28eb0ca930d7ccb4c1deffab96eda05ce Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 3 Sep 2018 21:07:55 -0700 Subject: Code formatting --- Graphics/GraphicsTools/src/GraphicsUtilities.cpp | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Graphics/GraphicsTools') diff --git a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp index 7db37e64..2abbd9ce 100644 --- a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp +++ b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp @@ -83,30 +83,30 @@ void GenerateCheckerBoardPattern(Uint32 Width, Uint32 Height, TEXTURE_FORMAT Fmt case COMPONENT_TYPE_UNORM: GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes, [](Uint8 *pDstTexel, Uint32 NumComponents, float fVal) - { - Uint8 uVal = static_cast(fVal * 255.f); - for (Uint32 c = 0; c < NumComponents; ++c) - pDstTexel[c] = uVal; - }); + { + Uint8 uVal = static_cast(fVal * 255.f); + for (Uint32 c = 0; c < NumComponents; ++c) + pDstTexel[c] = uVal; + }); break; case COMPONENT_TYPE_UNORM_SRGB: GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes, [](Uint8 *pDstTexel, Uint32 NumComponents, float fVal) - { - Uint8 uVal = static_cast( LinearToSRGB(fVal) * 255.f); - for (Uint32 c = 0; c < NumComponents; ++c) - pDstTexel[c] = uVal; - }); + { + Uint8 uVal = static_cast( LinearToSRGB(fVal) * 255.f); + for (Uint32 c = 0; c < NumComponents; ++c) + pDstTexel[c] = uVal; + }); break; case COMPONENT_TYPE_FLOAT: GenerateCheckerBoardPatternInternal(Width, Height, Fmt, HorzCells, VertCells, pData, StrideInBytes, [](Uint8 *pDstTexel, Uint32 NumComponents, float fVal) - { - for (Uint32 c = 0; c < NumComponents; ++c) - (reinterpret_cast(pDstTexel))[c] = fVal; - }); + { + for (Uint32 c = 0; c < NumComponents; ++c) + (reinterpret_cast(pDstTexel))[c] = fVal; + }); break; default: -- cgit v1.2.3