| 
    xoreos
    0.0.5
    
   | 
 
A mip map. More...
#include <decoder.h>

Public Member Functions | |
| MipMap (const ImageDecoder *i=0) | |
| MipMap (const MipMap &mipMap, const ImageDecoder *i=0) | |
| ~MipMap () | |
| void | swap (MipMap &right) | 
| void | getPixel (int x, int y, float &r, float &g, float &b, float &a) const | 
| Get the color values of the pixel at this position.  More... | |
| void | getPixel (int n, float &r, float &g, float &b, float &a) const | 
| Get the color values of the pixel at this index.  More... | |
| void | setPixel (int x, int y, float r, float g, float b, float a) | 
| Set the color values of the pixel at this position.  More... | |
| void | setPixel (int n, float r, float g, float b, float a) | 
| Set the color values of the pixel at this index.  More... | |
Public Attributes | |
| int | width | 
| The mip map's width.  More... | |
| int | height | 
| The mip map's height.  More... | |
| uint32 | size | 
| The mip map's size in bytes.  More... | |
| Common::ScopedArray< byte > | data | 
| The mip map's data.  More... | |
| const ImageDecoder * | image | 
| The image the mip map belongs to.  More... | |
| Graphics::ImageDecoder::MipMap::MipMap | ( | const ImageDecoder * | i = 0 | ) | 
Definition at line 41 of file decoder.cpp.
| Graphics::ImageDecoder::MipMap::MipMap | ( | const MipMap & | mipMap, | 
| const ImageDecoder * | i = 0  | 
        ||
| ) | 
Definition at line 44 of file decoder.cpp.
References data, Common::ScopedPtrBase< T, Deallocator >::get(), Common::ScopedPtrBase< T, Deallocator >::reset(), and size.

| Graphics::ImageDecoder::MipMap::~MipMap | ( | ) | 
Definition at line 52 of file decoder.cpp.
| void Graphics::ImageDecoder::MipMap::getPixel | ( | int | x, | 
| int | y, | ||
| float & | r, | ||
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const | 
Get the color values of the pixel at this position.
Definition at line 64 of file decoder.cpp.
Referenced by Graphics::Aurora::ModelNode_NWN2::createTint().

| void Graphics::ImageDecoder::MipMap::getPixel | ( | int | n, | 
| float & | r, | ||
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const | 
Get the color values of the pixel at this index.
Definition at line 68 of file decoder.cpp.
References Graphics::kPixelFormatBGR, Graphics::kPixelFormatBGRA, Graphics::kPixelFormatRGB, and Graphics::kPixelFormatRGBA.
| void Graphics::ImageDecoder::MipMap::setPixel | ( | int | x, | 
| int | y, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | 
Set the color values of the pixel at this position.
Definition at line 97 of file decoder.cpp.
Referenced by Graphics::Aurora::ModelNode_NWN2::createTint().

| void Graphics::ImageDecoder::MipMap::setPixel | ( | int | n, | 
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | 
Set the color values of the pixel at this index.
Definition at line 101 of file decoder.cpp.
References CLIP(), Graphics::kPixelFormatBGR, Graphics::kPixelFormatBGRA, Graphics::kPixelFormatRGB, and Graphics::kPixelFormatRGBA.

| void Graphics::ImageDecoder::MipMap::swap | ( | MipMap & | right | ) | 
Definition at line 55 of file decoder.cpp.
References data, height, image, size, SWAP(), and width.
Referenced by Graphics::ImageDecoder::decompress().


| Common::ScopedArray<byte> Graphics::ImageDecoder::MipMap::data | 
The mip map's data.
Definition at line 56 of file decoder.h.
Referenced by Graphics::ImageDecoder::decompress(), Graphics::Aurora::ModelNode_DragonAge::fixTexturesAlpha(), Graphics::Aurora::ModelNode_DragonAge::fixTexturesHair(), Graphics::TPC::fixupCubeMap(), MipMap(), Graphics::Aurora::Texture::setMipMapData(), swap(), and Graphics::writeMipMap().
| int Graphics::ImageDecoder::MipMap::height | 
The mip map's height.
Definition at line 53 of file decoder.h.
Referenced by Graphics::Aurora::ModelNode_NWN2::createTint(), Graphics::ImageDecoder::decompress(), Graphics::dumpTGA(), Graphics::Aurora::PLTFile::getLayerPalette(), Graphics::DDS::readStandardHeader(), Graphics::Aurora::Texture::setMipMapData(), Graphics::DDS::setSize(), swap(), and Graphics::writeMipMap().
| const ImageDecoder* Graphics::ImageDecoder::MipMap::image | 
| uint32 Graphics::ImageDecoder::MipMap::size | 
The mip map's size in bytes.
Definition at line 54 of file decoder.h.
Referenced by Graphics::ImageDecoder::decompress(), Graphics::Aurora::ModelNode_DragonAge::fixTexturesAlpha(), Graphics::Aurora::ModelNode_DragonAge::fixTexturesHair(), MipMap(), Graphics::Aurora::Texture::setMipMapData(), Graphics::DDS::setSize(), and swap().
| int Graphics::ImageDecoder::MipMap::width | 
The mip map's width.
Definition at line 52 of file decoder.h.
Referenced by Graphics::Aurora::ModelNode_NWN2::createTint(), Graphics::ImageDecoder::decompress(), Graphics::dumpTGA(), Graphics::Aurora::PLTFile::getLayerPalette(), Graphics::DDS::readStandardHeader(), Graphics::Aurora::Texture::setMipMapData(), Graphics::DDS::setSize(), swap(), and Graphics::writeMipMap().
 1.8.14