"L. Spiro Engine"
|
Handles loading of .DDS files. More...
#include <LSIDds.h>
Classes | |
struct | LSI_DDS_HEADER |
struct | LSI_DDS_PIXELFORMAT |
Public Types | |
typedef struct lsi::CDds::LSI_DDS_PIXELFORMAT * | LPLSI_DDS_PIXELFORMAT |
typedef struct lsi::CDds::LSI_DDS_PIXELFORMAT | LPCLSI_DDS_PIXELFORMAT |
typedef struct lsi::CDds::LSI_DDS_HEADER * | LPLSI_DDS_HEADER |
typedef struct lsi::CDds::LSI_DDS_HEADER | LPCLSI_DDS_HEADER |
Static Public Member Functions | |
static LSBOOL LSE_CALL | LoadDds (const LSUINT8 *_pui8FileData, LSUINT32 _ui32DataLen, LSUINT32 &_ui32Width, LSUINT32 &_ui32Height, LSI_PIXEL_FORMAT &_pfFormat, CImageLib::CTexelBuffer &_tbReturn, CVector< CImageLib::CTexelBuffer > &_vMipMaps) |
static LSUINT32 LSE_CALL | DdsBlockSize (LSI_PIXEL_FORMAT _pfFormat) |
static LSI_PIXEL_FORMAT LSE_CALL | DdsPixelFormat (LSUINT32 _ui32FourCc) |
static LSUINT32 LSE_CALL | DdsScanlineWidth (LSUINT32 _ui32Width, LSI_PIXEL_FORMAT _pfFormat) |
static LSUINT32 LSE_CALL | DdsTotalScanlines (LSUINT32 _ui32Height) |
static LSUINT32 LSE_CALL | GetCompressedSize (LSUINT32 _ui32Width, LSUINT32 _ui32Height, LSUINT32 _ui32Factor) |
Handles loading of .DDS files.
Class CDds Description: Handles loading of .DDS files.
typedef struct lsi::CDds::LSI_DDS_HEADER * lsi::CDds::LPLSI_DDS_HEADER |
The DDS header.
typedef struct lsi::CDds::LSI_DDS_PIXELFORMAT * lsi::CDds::LPLSI_DDS_PIXELFORMAT |
The DDS header pixel format structure.
static LSUINT32 LSE_CALL lsi::CDds::DdsBlockSize | ( | LSI_PIXEL_FORMAT | _pfFormat | ) | [static] |
Returns the size, in pixels, of a block of a DDS file.
_pfFormat | The DXT format whose block size is to be obtained. |
static LSI_PIXEL_FORMAT LSE_CALL lsi::CDds::DdsPixelFormat | ( | LSUINT32 | _ui32FourCc | ) | [static] |
Returns the pixel format of the given four-character code.
_ui32FourCc | The FourCC to be converted into a pixel format. |
static LSUINT32 LSE_CALL lsi::CDds::DdsScanlineWidth | ( | LSUINT32 | _ui32Width, |
LSI_PIXEL_FORMAT | _pfFormat | ||
) | [static] |
Gets the pitch of a FourCC image format.
_ui32Width | The width of the image. |
_pfFormat | The format of the image. |
static LSUINT32 LSE_CALL lsi::CDds::DdsTotalScanlines | ( | LSUINT32 | _ui32Height | ) | [static] |
Gets the total number of scanlines in a given DDS format.
_ui32Height | Height of the image. |
static LSUINT32 LSE_CALL lsi::CDds::GetCompressedSize | ( | LSUINT32 | _ui32Width, |
LSUINT32 | _ui32Height, | ||
LSUINT32 | _ui32Factor | ||
) | [static] |
Returns the total size of a compressed image given a factor and its width and height.
_ui32Width | Width in pixels. |
_ui32Height | Height in pixels. |
_ui32Factor | Multiplier. |
static LSBOOL LSE_CALL lsi::CDds::LoadDds | ( | const LSUINT8 * | _pui8FileData, |
LSUINT32 | _ui32DataLen, | ||
LSUINT32 & | _ui32Width, | ||
LSUINT32 & | _ui32Height, | ||
LSI_PIXEL_FORMAT & | _pfFormat, | ||
CImageLib::CTexelBuffer & | _tbReturn, | ||
CVector< CImageLib::CTexelBuffer > & | _vMipMaps | ||
) | [static] |
Loads a DDS file from memory.
_pui8FileData | The in-memory image of the file. |
_ui32DataLen | The length of the in-memory image of the file. |
_ui32Width | The returned width of the image. |
_ui32Height | The returned height of the image. |
_pfFormat | Indicates the format of the converted data held in _tbReturn. |
_tbReturn | The returned data. |
_vMipMaps | The returned mipmap data, if any. |