Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CD3D9Texture Class Reference

Specialization Direct3D9 of textures. More...

`#include <KeosD3D9Texture.h>`

Inheritance diagram for Keos::CD3D9Texture:

List of all members.

## Public Member Functions

| CD3D9Texture (const TVector2I &Size, TPixelFormat Format, bool bHasMipmaps, bool bAutoMipmaps, IDirect3DTexture9 *pTexture)
| Constructor.
| ~CD3D9Texture ()
| Destructor.
IDirect3DTexture9 * | GetD3D9Texture () const
| Return D3D9 texture pointer.

## Private Member Functions

virtual void | Update (const CRectangle &Rect)
| Update the pixels of the texture.
void | UpdateSurface (const D3DLOCKED_RECT &LockedRect, const CRectangle &Rect)
| Copy the pixels of the texture on a lock surface.

## Private Attributes

CSmartPtr< IDirect3DTexture9, CCOMRefCounted > | m_pTexture
| D3D9 texture pointer.

## Detailed Description

Specialization Direct3D9 of textures.

Definition at line 33 of file KeosD3D9Texture.h.

## Constructor & Destructor Documentation

Keos::CD3D9Texture::CD3D9Texture | ( | const TVector2I & | Size,
|  | TPixelFormat | Format,
|  | bool | bHasMipmaps,
|  | bool | bAutoMipmaps,
|  | IDirect3DTexture9 * | pTexture
| ) |

| 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.
  | pTexture | D3D9 texture pointer.

Definition at line 35 of file KeosD3D9Texture.cpp.

Keos::CD3D9Texture::~CD3D9Texture | ( |  | ) |

| Destructor. Definition at line 43 of file KeosD3D9Texture.cpp.

## Member Function Documentation

IDirect3DTexture9 * Keos::CD3D9Texture::GetD3D9Texture | ( |  | ) | const

| Return D3D9 texture pointer. Definition at line 49 of file KeosD3D9Texture.cpp. References m_pTexture. Referenced by Keos::CD3D9RenderSystem::SetTexture().

void Keos::CD3D9Texture::Update | ( | const CRectangle & | Rect | ) | `[private, virtual]`

| Update the pixels of the texture.

Parameters:

  | Rect | Rectangle to update in the texture.

Implements Keos::ITextureBase.

Definition at line 55 of file KeosD3D9Texture.cpp.

References Assert, D3D9_EXCEPT, Keos::CImage::GetFormat(), Keos::INT_IN, m_pTexture, UpdateSurface(), Keos::CVector2< T >::x, and Keos::CVector2< T >::y.

void Keos::CD3D9Texture::UpdateSurface | ( | const D3DLOCKED_RECT & | LockedRect,
|  | const CRectangle & | Rect
| ) | `[private]`

| Copy the pixels of the texture on a lock surface. Definition at line 114 of file KeosD3D9Texture.cpp. References Keos::GetBytesPerPixel(), Keos::CImage::GetData(), Keos::CImage::GetFormat(), and Keos::CVector2< T >::x. Referenced by Update().

## Member Data Documentation

CSmartPtr<IDirect3DTexture9, CCOMRefCounted> Keos::CD3D9Texture::m_pTexture`[private]`

| D3D9 texture pointer. Definition at line 66 of file KeosD3D9Texture.h. Referenced by GetD3D9Texture(), and Update().

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

- RenderSystems/Direct3D9/KeosD3D9Texture.h
- RenderSystems/Direct3D9/KeosD3D9Texture.cpp