MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsCompatibleBitmap

Function IsCompatibleBitmap

trinity/Resources/Tr2LightProfileRes.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15const Tr2RenderContextEnum::PixelFormat PROFILE_LIGHTMAP_FORMAT = Tr2RenderContextEnum::PIXEL_FORMAT_R16_FLOAT;
16
17bool IsCompatibleBitmap( const ImageIO::HostBitmap& bitmap )
18{
19 return bitmap.GetType() == Tr2RenderContextEnum::TEX_TYPE_2D &&
20 bitmap.GetWidth() == PROFILE_LIGHTMAP_SIZE &&
21 bitmap.GetHeight() == 1 &&
22 bitmap.GetFormat() == PROFILE_LIGHTMAP_FORMAT &&
23 bitmap.GetTrueMipCount() == 11;
24}
25
26template <typename T>
27void Eat( std::istringstream& is )

Callers 2

DoLoadMethod · 0.85
GetThumbnailMethod · 0.85

Calls 5

GetTrueMipCountMethod · 0.80
GetTypeMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45
GetFormatMethod · 0.45

Tested by

no test coverage detected