Blender V2.61 - r43446
Public Member Functions | Public Attributes

DDSHeader Struct Reference

DDS file header. More...

#include <DirectDrawSurface.h>

List of all members.

Public Member Functions

 DDSHeader ()
void setWidth (uint w)
void setHeight (uint h)
void setDepth (uint d)
void setMipmapCount (uint count)
void setTexture2D ()
void setTexture3D ()
void setTextureCube ()
void setLinearSize (uint size)
void setPitch (uint pitch)
void setFourCC (uint8 c0, uint8 c1, uint8 c2, uint8 c3)
void setFormatCode (uint code)
void setSwizzleCode (uint8 c0, uint8 c1, uint8 c2, uint8 c3)
void setPixelFormat (uint bitcount, uint rmask, uint gmask, uint bmask, uint amask)
void setDX10Format (uint format)
void setNormalFlag (bool b)
void setSrgbFlag (bool b)
void setHasAlphaFlag (bool b)
void setUserVersion (int version)
bool hasDX10Header () const
uint signature () const
uint toolVersion () const
uint userVersion () const
bool isNormalMap () const
bool isSrgb () const
bool hasAlpha () const
uint d3d9Format () const

Public Attributes

uint fourcc
uint size
uint flags
uint height
uint width
uint pitch
uint depth
uint mipmapcount
uint reserved [11]
DDSPixelFormat pf
DDSCaps caps
uint notused
DDSHeader10 header10

Detailed Description

DDS file header.

Definition at line 97 of file DirectDrawSurface.h.


Constructor & Destructor Documentation

DDSHeader::DDSHeader ( )

Member Function Documentation

uint DDSHeader::d3d9Format ( ) const
bool DDSHeader::hasAlpha ( ) const

Definition at line 865 of file DirectDrawSurface.cpp.

References DDPF_ALPHAPIXELS, DDSPixelFormat::flags, and pf.

bool DDSHeader::hasDX10Header ( ) const
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)
void DDSHeader::setFormatCode ( uint  code)
void DDSHeader::setFourCC ( uint8  c0,
uint8  c1,
uint8  c2,
uint8  c3 
)
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)
void DDSHeader::setNormalFlag ( bool  b)
void DDSHeader::setPitch ( uint  pitch)

Definition at line 664 of file DirectDrawSurface.cpp.

References DDSD_LINEARSIZE, DDSD_PITCH, flags, and pitch.

void DDSHeader::setPixelFormat ( uint  bitcount,
uint  rmask,
uint  gmask,
uint  bmask,
uint  amask 
)
void DDSHeader::setSrgbFlag ( bool  b)

Definition at line 776 of file DirectDrawSurface.cpp.

References DDPF_SRGB, DDSPixelFormat::flags, and pf.

void DDSHeader::setSwizzleCode ( uint8  c0,
uint8  c1,
uint8  c2,
uint8  c3 
)

Definition at line 697 of file DirectDrawSurface.cpp.

References DDSPixelFormat::bitcount, MAKEFOURCC, and pf.

void DDSHeader::setTexture2D ( )
void DDSHeader::setTexture3D ( )
void DDSHeader::setTextureCube ( )
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.


Member Data Documentation

Definition at line 99 of file DirectDrawSurface.h.

Referenced by DDSHeader(), DirectDrawSurface::isValid(), and mem_read().

Definition at line 110 of file DirectDrawSurface.h.

Referenced by DDSHeader(), and mem_read().


The documentation for this struct was generated from the following files: