MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / PixelFormatInfo

Class PixelFormatInfo

include/Nazara/Utility/PixelFormat.hpp:24–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace Nz
23{
24 struct PixelFormatInfo
25 {
26 inline PixelFormatInfo();
27 inline PixelFormatInfo(PixelFormatContent formatContent, UInt8 bpp, PixelFormatSubType subType);
28 inline PixelFormatInfo(const String& formatName, PixelFormatContent formatContent, UInt8 bpp, PixelFormatSubType subType);
29 inline PixelFormatInfo(const String& formatName, PixelFormatContent formatContent, Bitset<> rMask, Bitset<> gMask, Bitset<> bMask, Bitset<> aMask, PixelFormatSubType subType);
30 inline PixelFormatInfo(const String& formatName, PixelFormatContent formatContent, PixelFormatSubType rType, Bitset<> rMask, PixelFormatSubType gType, Bitset<> gMask, PixelFormatSubType bType, Bitset<> bMask, PixelFormatSubType aType, Bitset<> aMask, UInt8 bpp = 0);
31
32 inline void Clear();
33
34 inline bool IsCompressed() const;
35 inline bool IsValid() const;
36
37 inline void RecomputeBitsPerPixel();
38
39 inline bool Validate() const;
40
41 // Warning: Masks bit order is reversed
42 Bitset<> redMask;
43 Bitset<> greenMask;
44 Bitset<> blueMask;
45 Bitset<> alphaMask;
46 PixelFormatContent content;
47 PixelFormatSubType redType;
48 PixelFormatSubType greenType;
49 PixelFormatSubType blueType;
50 PixelFormatSubType alphaType;
51 String name;
52 UInt8 bitsPerPixel;
53 };
54
55 class NAZARA_UTILITY_API PixelFormat
56 {

Callers 1

InitializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected