xoreos
0.0.5
|
Windows cursor. More...
#include <winiconimage.h>
Public Member Functions | |
WinIconImage (Common::SeekableReadStream &cur) | |
~WinIconImage () | |
int | getHotspotX () const |
int | getHotspotY () const |
Public Member Functions inherited from Graphics::ImageDecoder | |
ImageDecoder () | |
ImageDecoder (const ImageDecoder &image) | |
virtual | ~ImageDecoder () |
ImageDecoder & | operator= (const ImageDecoder &image) |
bool | isCompressed () const |
Is the image data compressed? More... | |
bool | hasAlpha () const |
Does the image data have alpha? . More... | |
PixelFormat | getFormat () const |
Return the image data's general format. More... | |
PixelFormatRaw | getFormatRaw () const |
Return the image data's raw format. More... | |
PixelDataType | getDataType () const |
Return the image data pixel's type. More... | |
size_t | getMipMapCount () const |
Return the number of mip maps contained in the image. More... | |
size_t | getLayerCount () const |
Return the number of layers contained in the image. More... | |
bool | isCubeMap () const |
Is this image a cube map? More... | |
const MipMap & | getMipMap (size_t mipMap, size_t layer=0) const |
Return a mip map. More... | |
void | decompress () |
Manually decompress the texture image data. More... | |
const TXI & | getTXI () const |
Return the texture information TXI, which may be embedded in the image. More... | |
bool | dumpTGA (const Common::UString &fileName) const |
Dump the image into a TGA. More... | |
Private Member Functions | |
void | load (Common::SeekableReadStream &cur) |
void | readHeader (Common::SeekableReadStream &cur) |
void | readData (Common::SeekableReadStream &cur) |
Private Attributes | |
uint16 | _imageCount |
uint16 | _iconType |
int | _hotspotX |
int | _hotspotY |
Additional Inherited Members | |
Protected Types inherited from Graphics::ImageDecoder | |
typedef Common::PtrVector< MipMap > | MipMaps |
Static Protected Member Functions inherited from Graphics::ImageDecoder | |
static void | decompress (MipMap &out, const MipMap &in, PixelFormatRaw format) |
Protected Attributes inherited from Graphics::ImageDecoder | |
bool | _compressed |
bool | _hasAlpha |
PixelFormat | _format |
PixelFormatRaw | _formatRaw |
PixelDataType | _dataType |
size_t | _layerCount |
Number of layers in this image. More... | |
bool | _isCubeMap |
Is this image a cube map? A cube map always needs to have 6 layers! More... | |
MipMaps | _mipMaps |
TXI | _txi |
Windows cursor.
Definition at line 37 of file winiconimage.h.
Graphics::WinIconImage::WinIconImage | ( | Common::SeekableReadStream & | cur | ) |
Definition at line 34 of file winiconimage.cpp.
References Graphics::ImageDecoder::_compressed, Graphics::ImageDecoder::_dataType, Graphics::ImageDecoder::_hasAlpha, Graphics::kPixelDataType8, and load().
Graphics::WinIconImage::~WinIconImage | ( | ) |
Definition at line 42 of file winiconimage.cpp.
int Graphics::WinIconImage::getHotspotX | ( | ) | const |
Definition at line 178 of file winiconimage.cpp.
References _hotspotX.
int Graphics::WinIconImage::getHotspotY | ( | ) | const |
Definition at line 182 of file winiconimage.cpp.
References _hotspotY.
|
private |
Definition at line 45 of file winiconimage.cpp.
References Common::StackException::add(), readData(), and readHeader().
Referenced by WinIconImage().
|
private |
Definition at line 73 of file winiconimage.cpp.
References Graphics::ImageDecoder::_format, Graphics::ImageDecoder::_formatRaw, _hotspotX, _hotspotY, _iconType, _imageCount, Graphics::ImageDecoder::_mipMaps, Common::ScopedPtrBase< T, Deallocator >::get(), Graphics::kPixelFormatBGRA, Graphics::kPixelFormatRGBA8, Common::kReadError, Common::ReadStream::read(), Common::ReadStream::readByte(), Common::ReadStream::readUint16LE(), Common::ReadStream::readUint32LE(), Common::SeekableReadStream::seek(), and Common::SeekableReadStream::skip().
Referenced by load().
|
private |
Definition at line 57 of file winiconimage.cpp.
References _iconType, _imageCount, Common::ReadStream::readUint16LE(), and Common::SeekableReadStream::seek().
Referenced by load().
|
private |
Definition at line 49 of file winiconimage.h.
Referenced by getHotspotX(), and readData().
|
private |
Definition at line 50 of file winiconimage.h.
Referenced by getHotspotY(), and readData().
|
private |
Definition at line 47 of file winiconimage.h.
Referenced by readData(), and readHeader().
|
private |
Definition at line 46 of file winiconimage.h.
Referenced by readData(), and readHeader().