TexturePool::TileDescriptor Struct Reference


Detailed Description

This structure describes the default texture parameters used when creating texture tiles for this TexturePool.

Definition at line 476 of file material.h.

#include <material.h>

List of all members.

Public Member Functions

  TileDescriptor (unsigned int iW, unsigned int iH, enum Image::Format eFormat, unsigned int iChannelCount, const QString &sFileFormat, const Color &cFillColor)
  The file format used when saving texture tiles. (i.e. "png", "tif", etc.)
  TileDescriptor ()
  TileDescriptor (const TileDescriptor &pOther, unsigned int iChannelCount)
bool  IsValid () const
virtual void  Serialize (Stream &s)

Public Attributes

unsigned int  m_iWidth
unsigned int  m_iHeight
  The default width, in pixels of new texture tiles.
enum Image::Format  m_eFormat
  The default height, in pixels of new texture tiles.
unsigned int  m_iChannelCount
  The default pixel format of new texture tiles.
Color  m_cFillColor
  The default channel count of new texture tiles.
QString  m_sFileFormat
  The color used to fill new texture tiles.

Constructor & Destructor Documentation

TileDescriptor ( unsigned int  iW,
unsigned int  iH,
enum Image::Format  eFormat,
unsigned int  iChannelCount,
const QString sFileFormat,
const Color cFillColor 
)

The file format used when saving texture tiles. (i.e. "png", "tif", etc.)

TileDescriptor ( const TileDescriptor pOther,
unsigned int  iChannelCount 
)

Member Function Documentation

bool IsValid ( ) const
virtual void Serialize ( Stream s ) [virtual]

Member Data Documentation

unsigned int m_iWidth

Definition at line 478 of file material.h.

unsigned int m_iHeight

The default width, in pixels of new texture tiles.

Definition at line 479 of file material.h.

The default height, in pixels of new texture tiles.

Definition at line 480 of file material.h.

unsigned int m_iChannelCount

The default pixel format of new texture tiles.

Definition at line 481 of file material.h.

The default channel count of new texture tiles.

Definition at line 482 of file material.h.

The color used to fill new texture tiles.

Definition at line 483 of file material.h.


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