Public Member Functions | Friends

sp::video::Direct3D11Texture Class Reference

#include <spDirect3D11Texture.hpp>

Inheritance diagram for sp::video::Direct3D11Texture:
sp::video::Texture sp::BaseObject

List of all members.

Public Member Functions

 Direct3D11Texture (ID3D11Device *D3DDevice, ID3D11DeviceContext *D3DDeviceContext, const STextureCreationFlags &CreationFlags)
 ~Direct3D11Texture ()
bool valid () const
 Returns true if the texture is correctly created by the used renderer.
void setHardwareFormat (const EHWTextureFormats HardwareFormat)
 Sets the new hardware format type.
void setFilter (const ETextureFilters Filter)
void setFilter (const ETextureFilters MagFilter, const ETextureFilters MinFilter)
void setMagFilter (const ETextureFilters Filter)
void setMinFilter (const ETextureFilters Filter)
void setMipMapFilter (const ETextureMipMapFilters MipMapFilter)
void setWrapMode (const ETextureWrapModes Wrap)
void setWrapMode (const ETextureWrapModes WrapU, const ETextureWrapModes WrapV, const ETextureWrapModes WrapW=TEXWRAP_REPEAT)
void bind (s32 Level=0) const
void unbind (s32 Level=0) const
bool shareImageBuffer ()
 Copies the hardware image buffer into the texture image buffer.
bool updateImageBuffer ()
 Copies the texture image buffer into the hardware image buffer (recreating the renderer texture).

Friends

class Direct3D11RenderSystem

Constructor & Destructor Documentation

sp::video::Direct3D11Texture::Direct3D11Texture ( ID3D11Device *  D3DDevice,
ID3D11DeviceContext *  D3DDeviceContext,
const STextureCreationFlags CreationFlags 
)
sp::video::Direct3D11Texture::~Direct3D11Texture (  ) 

Member Function Documentation

void sp::video::Direct3D11Texture::bind ( s32  Level = 0  )  const [virtual]

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setFilter ( const ETextureFilters  Filter  )  [virtual]

Texture's filter mode. By default FILTER_SMOOTH. The renderers normally calls this type "linear". But in this engine a "linear" texture has none-smoothed texels. This is the second value: FILTER_LINEAR. Mag (magnification) is the filter when the texels are bigger then one pixel on the screen. Min (minification) is the filter when the texels are smaller then one pixel on the screen (normally using MipMaps).

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setFilter ( const ETextureFilters  MagFilter,
const ETextureFilters  MinFilter 
) [virtual]

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setHardwareFormat ( const EHWTextureFormats  HardwareFormat  )  [virtual]

Sets the new hardware format type.

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setMagFilter ( const ETextureFilters  Filter  )  [virtual]

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setMinFilter ( const ETextureFilters  Filter  )  [virtual]

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setMipMapFilter ( const ETextureMipMapFilters  MipMapFilter  )  [virtual]

Texture's mipmap filter. By default FILTER_TRILINEAR. Three filter types are supported: FILTER_BILINEAR, FILTER_TRILINEAR and FILTER_ANISOTROPIC. If the filter is FILTER_ANISOTROPIC the anisotropy factor can be set by "setAnisotropicSamples". The texture quality grows with these parameters. i.e. FILTER_BILINEAR looks worst and FILTER_ANISOTROPIC looks best. This is the method on how MIP-mapping is computed. If the texture has no MIP-maps the filter is unnecessary.

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setWrapMode ( const ETextureWrapModes  Wrap  )  [virtual]

Texture coordinate wrap mode. This type says the renderer how to handle the texture coordinate greater then 1.0 or smaller then 0.0. Three types are supported: TEXWRAP_REPEAT (default value), TEXWRAP_MIRROR, TEXWRAP_CLAMP (normall used for SkyBoxes).

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::setWrapMode ( const ETextureWrapModes  WrapU,
const ETextureWrapModes  WrapV,
const ETextureWrapModes  WrapW = TEXWRAP_REPEAT 
) [virtual]

Reimplemented from sp::video::Texture.

bool sp::video::Direct3D11Texture::shareImageBuffer (  )  [virtual]

Copies the hardware image buffer into the texture image buffer.

Reimplemented from sp::video::Texture.

void sp::video::Direct3D11Texture::unbind ( s32  Level = 0  )  const [virtual]

Reimplemented from sp::video::Texture.

bool sp::video::Direct3D11Texture::updateImageBuffer (  )  [virtual]

Copies the texture image buffer into the hardware image buffer (recreating the renderer texture).

Reimplemented from sp::video::Texture.

bool sp::video::Direct3D11Texture::valid (  )  const [virtual]

Returns true if the texture is correctly created by the used renderer.

Reimplemented from sp::video::Texture.


Friends And Related Function Documentation

friend class Direct3D11RenderSystem [friend]

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