24 #ifndef __HDLTEXTURETOOLS_INCLUDE__
25 #define __HDLTEXTURETOOLS_INCLUDE__
41 #define HdlTextureFormatDescriptor_MaxNumChannels (4)
42 static const int maxNumChannels;
43 static const int maxPixelSizeInBits;
44 static const int maxPixelSize;
57 const GLenum channels[HdlTextureFormatDescriptor_MaxNumChannels];
59 const int channelsSizeInBits[HdlTextureFormatDescriptor_MaxNumChannels];
61 const GLenum channelsDepth[HdlTextureFormatDescriptor_MaxNumChannels];
63 const bool isFloatingPoint,
69 bool isDepthValid(GLenum depth)
const;
70 bool hasChannel(GLenum channel)
const;
71 int getChannelIndex(GLenum channel)
const;
72 int getChannelOffsetInBits(
int channelIndex, GLenum depth)
const;
73 int getChannelOffset(
int channelIndex, GLenum depth)
const;
74 int getChannelSizeInBits(
int channelIndex, GLenum depth)
const;
75 int getChannelSize(
int channelIndex, GLenum depth)
const;
76 int getPixelSizeInBits(GLenum depth)
const;
77 int getPixelSize(GLenum depth)
const;
79 static int getTypeSizeInBits(GLenum depth);
80 static int getTypeSize(GLenum depth);
83 static void applyBitShuffle(
char* dst,
const char* src,
const char* shuffleBitIndex,
const int length);
97 static int getNumDescriptors(
void);
Object handle describing an OpenGL Texture mode.
Definition: HdlTextureTools.hpp:39
Definition: Component.hpp:32
const int numChannels
Number of channels.
Definition: HdlTextureTools.hpp:55
const GLenum uncompressedMode
Name of the corresponding uncompressed mode (the same as mode if not a compressed format)...
Definition: HdlTextureTools.hpp:47
Singleton handling the static list of all available HdlTextureFormatDescriptor objects.
Definition: HdlTextureTools.hpp:90
const bool isSupported
If the format is supported.
Definition: HdlTextureTools.hpp:63
OpenGL includes and tools.