Public Member Functions | Protected Member Functions | Protected Attributes

xl7::direct3d::surfaces::Surface Class Reference

#include <Surface.h>

Inheritance diagram for xl7::direct3d::surfaces::Surface:
xl7::direct3d::Resource xl7::directx::Resource xl7::direct3d::surfaces::ColorRenderTarget xl7::direct3d::surfaces::DepthStencilTarget

List of all members.

Public Member Functions

IDirect3DSurface9 * GetInterface ()
const IDirect3DSurface9 * GetInterface () const
unsigned GetWidth () const
unsigned GetHeight () const
D3DFORMAT GetFormat () const
D3DPOOL GetPool () const
unsigned GetUsage () const
textures::TextureGetTexture () const

Protected Member Functions

 Surface (SurfaceManager *manager)
virtual ~Surface (void)

Protected Attributes

IDirect3DSurface9 * _surface
unsigned _width
unsigned _height
D3DFORMAT _format
D3DPOOL _pool
unsigned _usage
textures::Texture_texture

Constructor & Destructor Documentation

xl7::direct3d::surfaces::Surface::Surface ( SurfaceManager manager  )  [protected]

Explicit constructor.

xl7::direct3d::surfaces::Surface::~Surface ( void   )  [protected, virtual]

Destructor.


Member Function Documentation

D3DFORMAT xl7::direct3d::surfaces::Surface::GetFormat (  )  const [inline]

Returns the format of this surface.

unsigned xl7::direct3d::surfaces::Surface::GetHeight (  )  const [inline]

Returns the height of this surface (in pixels).

const IDirect3DSurface9* xl7::direct3d::surfaces::Surface::GetInterface (  )  const [inline]

Returns the Direct3D surface interface.

IDirect3DSurface9* xl7::direct3d::surfaces::Surface::GetInterface (  )  [inline]

Returns the Direct3D surface interface.

D3DPOOL xl7::direct3d::surfaces::Surface::GetPool (  )  const [inline]

Returns the memory class of this surface.

textures::Texture* xl7::direct3d::surfaces::Surface::GetTexture (  )  const [inline]

Returns the texture as the basis of this surface (or NULL, if no such texture exists).

unsigned xl7::direct3d::surfaces::Surface::GetUsage (  )  const [inline]

Returns the usage of this surface.

unsigned xl7::direct3d::surfaces::Surface::GetWidth (  )  const [inline]

Returns the width of this surface (in pixels).


Member Data Documentation

The format of this surface.

The height of this surface (in pixels).

The memory class of this surface.

IDirect3DSurface9* xl7::direct3d::surfaces::Surface::_surface [protected]

The Direct3D surface interface.

The texture as the basis of this surface (or NULL, if no such texture exists).

The usage of this surface.

The width of this surface (in pixels).


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines