nux-0.9.46

nux::TextureCube Class Reference

#include <NuxGraphics/GLTextureResourceManager.h>

Inheritance diagram for nux::TextureCube:
nux::BaseTexture nux::ResourceData nux::Object nux::Trackable

Public Member Functions

 TextureCube (NUX_FILE_LINE_PROTO)
 TextureCube (const TextureCube &texture)
TextureCubeoperator= (const TextureCube &texture)
 ~TextureCube ()
virtual bool Update (const NBitmapData *BitmapData, bool UpdateAndCacheResource=true)
virtual bool Update (const TCHAR *filename, bool UpdateAndCacheResource=true)
virtual bool IsNull () const
void GetData (void *Buffer, int MipIndex, int StrideY, int face=0)
int GetNumMipLevel () const
int GetWidth () const
int GetHeight () const
BitmapFormat GetFormat () const
bool IsPowerOfTwo () const
virtual BaseTextureClone () const

Constructor & Destructor Documentation

nux::TextureCube::TextureCube ( NUX_FILE_LINE_PROTO  )
nux::TextureCube::TextureCube ( const TextureCube texture)
nux::TextureCube::~TextureCube ( )

Member Function Documentation

virtual BaseTexture* nux::TextureCube::Clone ( ) const [virtual]

Clone the texture.

Returns:
A cloned version of this texture.

Implements nux::BaseTexture.

void nux::TextureCube::GetData ( void *  Buffer,
int  MipIndex,
int  StrideY,
int  face = 0 
) [virtual]

Implements nux::BaseTexture.

BitmapFormat nux::TextureCube::GetFormat ( ) const [inline, virtual]
Returns:
The texture data format.

Implements nux::BaseTexture.

References nux::NCubemapData::GetFormat().

int nux::TextureCube::GetHeight ( ) const [inline, virtual]
Returns:
The texture height.

Implements nux::BaseTexture.

References nux::NCubemapData::GetHeight().

int nux::TextureCube::GetNumMipLevel ( ) const [inline, virtual]
Returns:
The number of mip maps in the texture.

Implements nux::BaseTexture.

References nux::NCubemapData::GetNumMipmap().

int nux::TextureCube::GetWidth ( ) const [inline, virtual]
Returns:
The texture width.

Implements nux::BaseTexture.

References nux::NCubemapData::GetWidth().

virtual bool nux::TextureCube::IsNull ( ) const [inline, virtual]
Returns:
True if the texture storage contains valid bitmap data.

Implements nux::BaseTexture.

References nux::NCubemapData::IsNull().

bool nux::TextureCube::IsPowerOfTwo ( ) const [inline, virtual]
Returns:
True if the width and height of the texture are powers of two.

Implements nux::BaseTexture.

References nux::NCubemapData::GetHeight(), nux::NCubemapData::GetWidth(), and nux::IsPowerOf2().

TextureCube& nux::TextureCube::operator= ( const TextureCube texture)
virtual bool nux::TextureCube::Update ( const NBitmapData BitmapData,
bool  UpdateAndCacheResource = true 
) [virtual]

Update the texture with the provided Bitmap data. In doing so, if the texture as been cached in the resource manager, then the the DeviceTexture inside the CachedTexture will no longer be returned by GetDeviceTexture (). Instead a new device texture will be returned.

Pointer to the bitmap data. If true, then the texture is cached immediately. If false, the texture will be cached the first time GetDeviceTexture () or GetCachedTexture () is called.

Returns:
True if there was no error during the update.

Implements nux::BaseTexture.

virtual bool nux::TextureCube::Update ( const TCHAR filename,
bool  UpdateAndCacheResource = true 
) [virtual]

Update the texture with the provided filename. In doing so, if the texture as been cached in the resource manager, then the the DeviceTexture inside the CachedTexture will no longer be returned by GetDeviceTexture (). Instead a new device texture will be returned.

Pointer to the bitmap data. If true, then the texture is cached immediately. If false, the texture will be cached the first time GetDeviceTexture () or GetCachedTexture () is called.

Returns:
True if there was no error during the update.

Implements nux::BaseTexture.


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