Blender V2.61 - r43446
|
DDS file header. More...
#include <DirectDrawSurface.h>
DDS file header.
Definition at line 97 of file DirectDrawSurface.h.
DDSHeader::DDSHeader | ( | ) |
Definition at line 556 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSHeader10::arraySize, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, caps, DDSCaps::caps1, DDSCaps::caps2, DDSCaps::caps3, DDSCaps::caps4, D3D10_RESOURCE_DIMENSION_UNKNOWN, DDSCAPS_TEXTURE, DDSD_CAPS, DDSD_PIXELFORMAT, depth, DXGI_FORMAT_UNKNOWN, DDSHeader10::dxgiFormat, flags, DDSPixelFormat::flags, fourcc, DDSPixelFormat::fourcc, FOURCC_DDS, FOURCC_NVTT, DDSPixelFormat::gmask, header10, height, i, mipmapcount, DDSHeader10::miscFlag, notused, pf, pitch, reserved, DDSHeader10::reserved, DDSHeader10::resourceDimension, DDSPixelFormat::rmask, DDSPixelFormat::size, size, and width.
uint DDSHeader::d3d9Format | ( | ) | const |
Definition at line 870 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, DDPF_FOURCC, findD3D9Format(), DDSPixelFormat::flags, DDSPixelFormat::fourcc, DDSPixelFormat::gmask, pf, and DDSPixelFormat::rmask.
bool DDSHeader::hasAlpha | ( | ) | const |
Definition at line 865 of file DirectDrawSurface.cpp.
References DDPF_ALPHAPIXELS, DDSPixelFormat::flags, and pf.
bool DDSHeader::hasDX10Header | ( | ) | const |
Definition at line 832 of file DirectDrawSurface.cpp.
References DDSPixelFormat::fourcc, FOURCC_DX10, and pf.
Referenced by DirectDrawSurface::hasAlpha(), DirectDrawSurface::isSupported(), DirectDrawSurface::isTexture1D(), DirectDrawSurface::isTexture2D(), DirectDrawSurface::isTexture3D(), mem_read(), DirectDrawSurface::mipmap(), and DirectDrawSurface::printInfo().
bool DDSHeader::isNormalMap | ( | ) | const |
Definition at line 855 of file DirectDrawSurface.cpp.
References DDPF_NORMAL, DDSPixelFormat::flags, and pf.
bool DDSHeader::isSrgb | ( | ) | const |
Definition at line 860 of file DirectDrawSurface.cpp.
References DDPF_SRGB, DDSPixelFormat::flags, and pf.
void DDSHeader::setDepth | ( | uint | d | ) |
Definition at line 605 of file DirectDrawSurface.cpp.
References simple_enum_gen::d, DDSD_DEPTH, depth, and flags.
void DDSHeader::setDX10Format | ( | uint | format | ) |
Definition at line 763 of file DirectDrawSurface.cpp.
References DDSHeader10::dxgiFormat, DDSPixelFormat::fourcc, FOURCC_DX10, header10, and pf.
void DDSHeader::setFormatCode | ( | uint | code | ) |
Definition at line 684 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, DDPF_FOURCC, DDSPixelFormat::flags, DDSPixelFormat::fourcc, DDSPixelFormat::gmask, pf, and DDSPixelFormat::rmask.
Definition at line 671 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, DDPF_FOURCC, DDSPixelFormat::flags, DDSPixelFormat::fourcc, DDSPixelFormat::gmask, MAKEFOURCC, pf, and DDSPixelFormat::rmask.
void DDSHeader::setHasAlphaFlag | ( | bool | b | ) |
Definition at line 782 of file DirectDrawSurface.cpp.
References DDPF_ALPHAPIXELS, DDSPixelFormat::flags, and pf.
Referenced by DirectDrawSurface::setHasAlphaFlag().
void DDSHeader::setHeight | ( | uint | h | ) |
Definition at line 599 of file DirectDrawSurface.cpp.
References DDSD_HEIGHT, flags, and height.
void DDSHeader::setLinearSize | ( | uint | size | ) |
Definition at line 657 of file DirectDrawSurface.cpp.
References DDSD_LINEARSIZE, DDSD_PITCH, flags, pitch, and size.
void DDSHeader::setMipmapCount | ( | uint | count | ) |
Definition at line 611 of file DirectDrawSurface.cpp.
References caps, DDSCaps::caps1, DDSCaps::caps2, DDSCAPS_COMPLEX, DDSCAPS_MIPMAP, DDSCAPS_TEXTURE, DDSD_MIPMAPCOUNT, flags, and mipmapcount.
void DDSHeader::setNormalFlag | ( | bool | b | ) |
Definition at line 770 of file DirectDrawSurface.cpp.
References DDPF_NORMAL, DDSPixelFormat::flags, and pf.
Referenced by DirectDrawSurface::DirectDrawSurface(), and DirectDrawSurface::setNormalFlag().
void DDSHeader::setPitch | ( | uint | pitch | ) |
Definition at line 664 of file DirectDrawSurface.cpp.
References DDSD_LINEARSIZE, DDSD_PITCH, flags, and pitch.
Definition at line 703 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, DDPF_ALPHA, DDPF_ALPHAPIXELS, DDPF_LUMINANCE, DDPF_RGB, DDSPixelFormat::flags, DDSPixelFormat::fourcc, DDSPixelFormat::gmask, pf, and DDSPixelFormat::rmask.
void DDSHeader::setSrgbFlag | ( | bool | b | ) |
Definition at line 776 of file DirectDrawSurface.cpp.
References DDPF_SRGB, DDSPixelFormat::flags, and pf.
Definition at line 697 of file DirectDrawSurface.cpp.
References DDSPixelFormat::bitcount, MAKEFOURCC, and pf.
void DDSHeader::setTexture2D | ( | ) |
Definition at line 634 of file DirectDrawSurface.cpp.
References DDSHeader10::arraySize, D3D10_RESOURCE_DIMENSION_TEXTURE2D, header10, and DDSHeader10::resourceDimension.
void DDSHeader::setTexture3D | ( | ) |
Definition at line 640 of file DirectDrawSurface.cpp.
References DDSHeader10::arraySize, caps, DDSCaps::caps2, D3D10_RESOURCE_DIMENSION_TEXTURE3D, DDSCAPS2_VOLUME, header10, and DDSHeader10::resourceDimension.
void DDSHeader::setTextureCube | ( | ) |
Definition at line 648 of file DirectDrawSurface.cpp.
References DDSHeader10::arraySize, caps, DDSCaps::caps1, DDSCaps::caps2, D3D10_RESOURCE_DIMENSION_TEXTURE2D, DDSCAPS2_CUBEMAP, DDSCAPS2_CUBEMAP_ALL_FACES, DDSCAPS_COMPLEX, header10, and DDSHeader10::resourceDimension.
void DDSHeader::setUserVersion | ( | int | version | ) |
Definition at line 788 of file DirectDrawSurface.cpp.
References FOURCC_UVER, and reserved.
Referenced by DirectDrawSurface::setUserVersion().
void DDSHeader::setWidth | ( | uint | w | ) |
Definition at line 593 of file DirectDrawSurface.cpp.
References DDSD_WIDTH, flags, simple_enum_gen::w, and width.
uint DDSHeader::signature | ( | ) | const |
Definition at line 837 of file DirectDrawSurface.cpp.
References reserved.
uint DDSHeader::toolVersion | ( | ) | const |
Definition at line 842 of file DirectDrawSurface.cpp.
References reserved.
uint DDSHeader::userVersion | ( | ) | const |
Definition at line 847 of file DirectDrawSurface.cpp.
References FOURCC_UVER, and reserved.
Definition at line 109 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::isSupported(), DirectDrawSurface::isTexture3D(), DirectDrawSurface::isTextureCube(), mem_read(), DirectDrawSurface::printInfo(), setMipmapCount(), setTexture3D(), and setTextureCube().
Definition at line 105 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::depth(), mem_read(), DirectDrawSurface::printInfo(), and setDepth().
Definition at line 101 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::depth(), DirectDrawSurface::height(), DirectDrawSurface::isValid(), mem_read(), DirectDrawSurface::mipmapCount(), DirectDrawSurface::printInfo(), setDepth(), setHeight(), setLinearSize(), setMipmapCount(), setPitch(), setWidth(), and DirectDrawSurface::width().
Definition at line 99 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::isValid(), and mem_read().
Definition at line 111 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::hasAlpha(), DirectDrawSurface::isSupported(), DirectDrawSurface::isTexture1D(), DirectDrawSurface::isTexture2D(), DirectDrawSurface::isTexture3D(), mem_read(), DirectDrawSurface::printInfo(), setDX10Format(), setTexture2D(), setTexture3D(), and setTextureCube().
Definition at line 102 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::height(), mem_read(), DirectDrawSurface::printInfo(), and setHeight().
Definition at line 106 of file DirectDrawSurface.h.
Referenced by DDSHeader(), mem_read(), DirectDrawSurface::mipmapCount(), DirectDrawSurface::printInfo(), and setMipmapCount().
Definition at line 110 of file DirectDrawSurface.h.
Referenced by DDSHeader(), and mem_read().
Definition at line 108 of file DirectDrawSurface.h.
Referenced by d3d9Format(), DDSHeader(), DirectDrawSurface::DirectDrawSurface(), DirectDrawSurface::hasAlpha(), hasAlpha(), hasDX10Header(), isNormalMap(), isSrgb(), DirectDrawSurface::isSupported(), DirectDrawSurface::isValid(), mem_read(), DirectDrawSurface::mipmap(), DirectDrawSurface::printInfo(), setDX10Format(), setFormatCode(), setFourCC(), setHasAlphaFlag(), setNormalFlag(), setPixelFormat(), setSrgbFlag(), and setSwizzleCode().
Definition at line 104 of file DirectDrawSurface.h.
Referenced by DDSHeader(), mem_read(), DirectDrawSurface::printInfo(), setLinearSize(), and setPitch().
Definition at line 107 of file DirectDrawSurface.h.
Referenced by DDSHeader(), mem_read(), DirectDrawSurface::printInfo(), setUserVersion(), signature(), toolVersion(), and userVersion().
Definition at line 100 of file DirectDrawSurface.h.
Referenced by DDSHeader(), DirectDrawSurface::isValid(), mem_read(), and setLinearSize().
Definition at line 103 of file DirectDrawSurface.h.
Referenced by DDSHeader(), mem_read(), DirectDrawSurface::printInfo(), setWidth(), and DirectDrawSurface::width().