Ogre::D3D9Mappings Class Reference

`#include <OgreD3D9Mappings.h>`

List of all members.

## Public Types

enum | eD3DTexType { D3D_TEX_TYPE_NORMAL, D3D_TEX_TYPE_CUBE, D3D_TEX_TYPE_VOLUME, D3D_TEX_TYPE_NONE }
| enum identifying D3D9 tex. types More...
enum | eD3DFilterUsage { D3D_FUSAGE_MIN, D3D_FUSAGE_MAG, D3D_FUSAGE_MIP }
| enum identifying D3D9 filter usage type More...

## Static Public Member Functions

static DWORD | get (ShadeOptions so)
| return a D3D9 equivalent for a Ogre ShadeOptions value
static D3DLIGHTTYPE | get (Ogre::Light::LightTypes lightType)
| return a D3D9 equivalent for a Ogre LightTypes value
static DWORD | get (TexCoordCalcMethod m, const D3DCAPS9 &caps)
| return a D3D9 equivalent for a Ogre TexCoordCalsMethod value
static D3DTEXTUREADDRESS | get (TextureUnitState::TextureAddressingMode tam, const D3DCAPS9 &devCaps)
| return a D3D9 equivalent for a Ogre TextureAddressingMode value
static D3DTEXTURESTAGESTATETYPE | get (LayerBlendType lbt)
| return a D3D9 equivalent for a Ogre LayerBlendType value
static DWORD | get (LayerBlendOperationEx lbo, const D3DCAPS9 &devCaps)
| return a D3D9 equivalent for a Ogre LayerBlendOperationEx value
static DWORD | get (LayerBlendSource lbs, bool perStageConstants)
| return a D3D9 equivalent for a Ogre LayerBlendSource value
static D3DBLEND | get (SceneBlendFactor sbf)
| return a D3D9 equivalent for a Ogre SceneBlendFactor value
static D3DBLENDOP | get (SceneBlendOperation sbo)
| return a D3D9 equivalent for a Ogre SceneBlendOperation value
static DWORD | get (CompareFunction cf)
| return a D3D9 equivalent for a Ogre CompareFunction value
static DWORD | get (CullingMode cm, bool flip)
| return a D3D9 equivalent for a Ogre CillingMode value
static D3DFOGMODE | get (FogMode fm)
| return a D3D9 equivalent for a Ogre FogMode value
static D3DFILLMODE | get (PolygonMode level)
| return a D3D9 equivalent for a Ogre PolygonMode value
static DWORD | get (StencilOperation op, bool invert=false)
| return a D3D9 equivalent for a Ogre StencilOperation value
static D3DSAMPLERSTATETYPE | get (FilterType ft)
| return a D3D9 state type for Ogre FilterType value
static DWORD | get (FilterType ft, FilterOptions fo, const D3DCAPS9 &devCaps, eD3DTexType texType)
| return a D3D9 filter option for Ogre FilterType & FilterOption value
static eD3DTexType | get (TextureType ogreTexType)
| return the D3DtexType equivalent of a Ogre tex. type
static DWORD | get (HardwareBuffer::Usage usage)
| return the combination of D3DUSAGE values for Ogre buffer usage
static DWORD | get (HardwareBuffer::LockOptions options, HardwareBuffer::Usage usage)
| Get lock options.
static D3DFORMAT | get (HardwareIndexBuffer::IndexType itype)
| Get index type.
static D3DDECLTYPE | get (VertexElementType vType)
| Get vertex data type.
static D3DDECLUSAGE | get (VertexElementSemantic sem)
| Get vertex semantic.
static D3DXMATRIX | makeD3DXMatrix (const Matrix4 &mat)
static Matrix4 | convertD3DXMatrix (const D3DXMATRIX &mat)
static PixelFormat | _getPF (D3DFORMAT d3dPF)
| utility method, convert D3D9 pixel format to Ogre pixel format
static D3DFORMAT | _getPF (PixelFormat ogrePF)
| utility method, convert Ogre pixel format to D3D9 pixel format
static PixelFormat | _getClosestSupportedPF (PixelFormat ogrePF)
| utility method, find closest Ogre pixel format that D3D9 can support

## Detailed Description

Definition at line 41 of file OgreD3D9Mappings.h.

## Member Enumeration Documentation

enum Ogre::D3D9Mappings::eD3DFilterUsage

enum identifying D3D9 filter usage type

Enumerator:

  D3D_FUSAGE_MIN | min filter
  D3D_FUSAGE_MAG | mag filter
  D3D_FUSAGE_MIP | mip filter

Definition at line 58 of file OgreD3D9Mappings.h.

enum Ogre::D3D9Mappings::eD3DTexType

enum identifying D3D9 tex. types

Enumerator:

  D3D_TEX_TYPE_NORMAL | standard texture
  D3D_TEX_TYPE_CUBE | cube texture
  D3D_TEX_TYPE_VOLUME | volume texture
  D3D_TEX_TYPE_NONE | just to have it...

Definition at line 45 of file OgreD3D9Mappings.h.

## Member Function Documentation

static PixelFormat Ogre::D3D9Mappings::_getClosestSupportedPF | ( | PixelFormat | ogrePF | ) | `[static]`

utility method, find closest Ogre pixel format that D3D9 can support

static PixelFormat Ogre::D3D9Mappings::_getPF | ( | D3DFORMAT | d3dPF | ) | `[static]`

utility method, convert D3D9 pixel format to Ogre pixel format

static D3DFORMAT Ogre::D3D9Mappings::_getPF | ( | PixelFormat | ogrePF | ) | `[static]`

utility method, convert Ogre pixel format to D3D9 pixel format

static Matrix4 Ogre::D3D9Mappings::convertD3DXMatrix | ( | const D3DXMATRIX & | mat | ) | `[static]`

static DWORD Ogre::D3D9Mappings::get | ( | ShadeOptions | so | ) | `[static]`

return a D3D9 equivalent for a Ogre ShadeOptions value

static D3DLIGHTTYPE Ogre::D3D9Mappings::get | ( | Ogre::Light::LightTypes | lightType | ) | `[static]`

return a D3D9 equivalent for a Ogre LightTypes value

static DWORD Ogre::D3D9Mappings::get | ( | TexCoordCalcMethod | m,
|  | const D3DCAPS9 & | caps
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre TexCoordCalsMethod value

static D3DTEXTUREADDRESS Ogre::D3D9Mappings::get | ( | TextureUnitState::TextureAddressingMode | tam,
|  | const D3DCAPS9 & | devCaps
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre TextureAddressingMode value

static D3DTEXTURESTAGESTATETYPE Ogre::D3D9Mappings::get | ( | LayerBlendType | lbt | ) | `[static]`

return a D3D9 equivalent for a Ogre LayerBlendType value

static DWORD Ogre::D3D9Mappings::get | ( | LayerBlendOperationEx | lbo,
|  | const D3DCAPS9 & | devCaps
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre LayerBlendOperationEx value

static DWORD Ogre::D3D9Mappings::get | ( | LayerBlendSource | lbs,
|  | bool | perStageConstants
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre LayerBlendSource value

static D3DBLEND Ogre::D3D9Mappings::get | ( | SceneBlendFactor | sbf | ) | `[static]`

return a D3D9 equivalent for a Ogre SceneBlendFactor value

static D3DBLENDOP Ogre::D3D9Mappings::get | ( | SceneBlendOperation | sbo | ) | `[static]`

return a D3D9 equivalent for a Ogre SceneBlendOperation value

static DWORD Ogre::D3D9Mappings::get | ( | CompareFunction | cf | ) | `[static]`

return a D3D9 equivalent for a Ogre CompareFunction value

static DWORD Ogre::D3D9Mappings::get | ( | CullingMode | cm,
|  | bool | flip
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre CillingMode value

static D3DFOGMODE Ogre::D3D9Mappings::get | ( | FogMode | fm | ) | `[static]`

return a D3D9 equivalent for a Ogre FogMode value

static D3DFILLMODE Ogre::D3D9Mappings::get | ( | PolygonMode | level | ) | `[static]`

return a D3D9 equivalent for a Ogre PolygonMode value

static DWORD Ogre::D3D9Mappings::get | ( | StencilOperation | op,
|  | bool | invert = `false`
| ) |  | `[static]`

return a D3D9 equivalent for a Ogre StencilOperation value

static D3DSAMPLERSTATETYPE Ogre::D3D9Mappings::get | ( | FilterType | ft | ) | `[static]`

return a D3D9 state type for Ogre FilterType value

static DWORD Ogre::D3D9Mappings::get | ( | FilterType | ft,
|  | FilterOptions | fo,
|  | const D3DCAPS9 & | devCaps,
|  | eD3DTexType | texType
| ) |  | `[static]`

return a D3D9 filter option for Ogre FilterType & FilterOption value

static eD3DTexType Ogre::D3D9Mappings::get | ( | TextureType | ogreTexType | ) | `[static]`

return the D3DtexType equivalent of a Ogre tex. type

static DWORD Ogre::D3D9Mappings::get | ( | HardwareBuffer::Usage | usage | ) | `[static]`

return the combination of D3DUSAGE values for Ogre buffer usage

static DWORD Ogre::D3D9Mappings::get | ( | HardwareBuffer::LockOptions | options,
|  | HardwareBuffer::Usage | usage
| ) |  | `[static]`

Get lock options.

static D3DFORMAT Ogre::D3D9Mappings::get | ( | HardwareIndexBuffer::IndexType | itype | ) | `[static]`

Get index type.

static D3DDECLTYPE Ogre::D3D9Mappings::get | ( | VertexElementType | vType | ) | `[static]`

Get vertex data type.

static D3DDECLUSAGE Ogre::D3D9Mappings::get | ( | VertexElementSemantic | sem | ) | `[static]`

Get vertex semantic.

static D3DXMATRIX Ogre::D3D9Mappings::makeD3DXMatrix | ( | const Matrix4 & | mat | ) | `[static]`

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

- OgreD3D9Mappings.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Sep 2 2012 07:27:49