Keos::ITextureBase Class Reference

Base class for textures. More...

#include <KeosTextureBase.h>

Inheritance diagram for Keos::ITextureBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ITextureBase ()
 Destructor.

Protected Member Functions

 ITextureBase (const TVector2I &Size, TPixelFormat Format, bool bHasMipmaps, bool bAutoMipmaps)
 Constructor.
virtual void Update (const CRectangle &Rect)=0
 Update the pixels of the texture.

Protected Attributes

TPixelFormat m_Format
 Format of pixels of the texture.
TVector2I m_Size
 Texture dimensions.
CImage m_Data
 System copy of the pixels of the texture.
bool m_bHasMipmaps
 Indicate if the texture has levels of mipmaps.
bool m_bAutoMipmaps
 Indicate if the texture can generate its mips in HW.

Friends

class CTexture

Detailed Description

Base class for textures.

Definition at line 34 of file KeosTextureBase.h.


Constructor & Destructor Documentation

Keos::ITextureBase::~ITextureBase (  )  [virtual]

Destructor.

Definition at line 41 of file KeosTextureBase.cpp.

Keos::ITextureBase::ITextureBase ( const TVector2I Size,
TPixelFormat  Format,
bool  bHasMipmaps,
bool  bAutoMipmaps 
) [protected]

Constructor.

Parameters:
Size Texture size.
Format Format of pixels of the texture.
bHasMipmaps Indicate if the texture has levels of mipmaps.
bAutoMipmaps Indicate if the texture can generate its mips in HW.

Definition at line 32 of file KeosTextureBase.cpp.


Member Function Documentation

virtual void Keos::ITextureBase::Update ( const CRectangle Rect  )  [protected, pure virtual]

Update the pixels of the texture.

Parameters:
Rect Rectangle to update in the texture.


Friends And Related Function Documentation

friend class CTexture [friend]

Definition at line 44 of file KeosTextureBase.h.


Member Data Documentation

TPixelFormat Keos::ITextureBase::m_Format [protected]

Format of pixels of the texture.

Definition at line 60 of file KeosTextureBase.h.

TVector2I Keos::ITextureBase::m_Size [protected]

Texture dimensions.

Definition at line 62 of file KeosTextureBase.h.

CImage Keos::ITextureBase::m_Data [protected]

System copy of the pixels of the texture.

Definition at line 64 of file KeosTextureBase.h.

bool Keos::ITextureBase::m_bHasMipmaps [protected]

Indicate if the texture has levels of mipmaps.

Definition at line 66 of file KeosTextureBase.h.

bool Keos::ITextureBase::m_bAutoMipmaps [protected]

Indicate if the texture can generate its mips in HW.

Definition at line 68 of file KeosTextureBase.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:29 2007 for Keos by  doxygen 1.5.1-p1