GFXFormatInfo
Engine/source/gfx/gfxFormatUtils.h
Some information about a GFXFormat.
Classes:
class
Protected Static Attributes
smFormatInfos [GFXFormat_COUNT]
Public Functions
Detailed Description
Some information about a GFXFormat.
Protected Attributes
GFXFormat mFormat
Protected Static Attributes
Data smFormatInfos [GFXFormat_COUNT]
Public Functions
GFXFormatInfo(GFXFormat format)
getBytesPerPixel()
return:
the number of bytes per pixel in this format.
note:For compressed formats that can't give a fixed value per pixel, this will be zero.
hasAlpha()
return:
true if the format has an alpha channel.
isCompressed()
return:
true if format uses compression.
isFloatingPoint()
return:
true if channels are stored in floating-point format.