Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# 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 Methods

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

## Member Enumeration Documentation

enum Ogre::D3D9Mappings::eD3DFilterUsage

enum identifying D3D9 filter usage type

Enumeration values:

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

Definition at line 61 of file OgreD3D9Mappings.h.

enum Ogre::D3D9Mappings::eD3DTexType

enum identifying D3D9 tex. types

Enumeration values:

  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 48 of file OgreD3D9Mappings.h.

## Member Function Documentation

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

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

| Get vertex semantic. Definition at line 523 of file OgreD3D9Mappings.cpp. References Ogre::VertexElementSemantic, Ogre::VES_BINORMAL, Ogre::VES_BLEND_INDICES, Ogre::VES_BLEND_WEIGHTS, Ogre::VES_DIFFUSE, Ogre::VES_NORMAL, Ogre::VES_POSITION, Ogre::VES_SPECULAR, Ogre::VES_TANGENT, and Ogre::VES_TEXTURE_COORDINATES.

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

| Get vertex data type. Definition at line 490 of file OgreD3D9Mappings.cpp. References Ogre::VertexElementType, Ogre::VET_COLOUR, Ogre::VET_FLOAT1, Ogre::VET_FLOAT2, Ogre::VET_FLOAT3, Ogre::VET_FLOAT4, Ogre::VET_SHORT2, Ogre::VET_SHORT4, and Ogre::VET_UBYTE4.

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

| Get index type. Definition at line 478 of file OgreD3D9Mappings.cpp.

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

| Get lock options. Definition at line 451 of file OgreD3D9Mappings.cpp.

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

| return the combination of D3DUSAGE values for Ogre buffer usage Definition at line 433 of file OgreD3D9Mappings.cpp.

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

| return the D3DtexType equivalent of a Ogre tex. type Definition at line 418 of file OgreD3D9Mappings.cpp. References Ogre::TEX_TYPE_1D, Ogre::TEX_TYPE_2D, Ogre::TEX_TYPE_3D, Ogre::TEX_TYPE_CUBE_MAP, and Ogre::TextureType.

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

| return a D3D9 filter option for Ogre FilterType & FilterOption value Definition at line 326 of file OgreD3D9Mappings.cpp. References D3D_TEX_TYPE_CUBE, D3D_TEX_TYPE_NORMAL, D3D_TEX_TYPE_VOLUME, Ogre::FilterOptions, Ogre::FilterType, Ogre::FO_ANISOTROPIC, Ogre::FO_LINEAR, Ogre::FO_NONE, Ogre::FO_POINT, Ogre::FT_MAG, Ogre::FT_MIN, Ogre::FT_MIP, and Ogre::TFO_NONE.

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

| return a D3D9 state type for Ogre FilterType value Definition at line 307 of file OgreD3D9Mappings.cpp. References Ogre::FilterType, Ogre::FT_MAG, Ogre::FT_MIN, and Ogre::FT_MIP.

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

| return a D3D9 equivalent for a Ogre StencilOperation value Definition at line 283 of file OgreD3D9Mappings.cpp. References Ogre::SOP_DECREMENT, Ogre::SOP_DECREMENT_WRAP, Ogre::SOP_INCREMENT, Ogre::SOP_INCREMENT_WRAP, Ogre::SOP_INVERT, Ogre::SOP_KEEP, Ogre::SOP_REPLACE, Ogre::SOP_ZERO, and Ogre::StencilOperation.

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

| return a D3D9 equivalent for a Ogre SceneDetailLevel value Definition at line 269 of file OgreD3D9Mappings.cpp. References Ogre::SceneDetailLevel, Ogre::SDL_POINTS, Ogre::SDL_SOLID, and Ogre::SDL_WIREFRAME.

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

| return a D3D9 equivalent for a Ogre FogMode value Definition at line 255 of file OgreD3D9Mappings.cpp. References Ogre::FOG_EXP, Ogre::FOG_EXP2, Ogre::FOG_LINEAR, and Ogre::FogMode.

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

| return a D3D9 equivalent for a Ogre CillingMode value Definition at line 235 of file OgreD3D9Mappings.cpp. References Ogre::CULL_ANTICLOCKWISE, Ogre::CULL_CLOCKWISE, Ogre::CULL_NONE, and Ogre::CullingMode.

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

| return a D3D9 equivalent for a Ogre CompareFunction value Definition at line 211 of file OgreD3D9Mappings.cpp. References Ogre::CMPF_ALWAYS_FAIL, Ogre::CMPF_ALWAYS_PASS, Ogre::CMPF_EQUAL, Ogre::CMPF_GREATER, Ogre::CMPF_GREATER_EQUAL, Ogre::CMPF_LESS, Ogre::CMPF_LESS_EQUAL, Ogre::CMPF_NOT_EQUAL, and Ogre::CompareFunction.

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

return a D3D9 equivalent for a Ogre SceneBlendFactor value

Definition at line 183 of file OgreD3D9Mappings.cpp.

References Ogre::SBF_DEST_ALPHA, Ogre::SBF_DEST_COLOUR, Ogre::SBF_ONE, Ogre::SBF_ONE_MINUS_DEST_ALPHA, Ogre::SBF_ONE_MINUS_DEST_COLOUR, Ogre::SBF_ONE_MINUS_SOURCE_ALPHA, Ogre::SBF_ONE_MINUS_SOURCE_COLOUR, Ogre::SBF_SOURCE_ALPHA, Ogre::SBF_SOURCE_COLOUR, Ogre::SBF_ZERO, and Ogre::SceneBlendFactor.

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

| return a D3D9 equivalent for a Ogre LayerBlendSource value Definition at line 126 of file OgreD3D9Mappings.cpp. References Ogre::LayerBlendSource, Ogre::LBS_CURRENT, Ogre::LBS_DIFFUSE, Ogre::LBS_MANUAL, Ogre::LBS_SPECULAR, and Ogre::LBS_TEXTURE.

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

return a D3D9 equivalent for a Ogre LayerBlendOperationEx value

Definition at line 144 of file OgreD3D9Mappings.cpp.

References Ogre::LayerBlendOperationEx, Ogre::LBX_ADD, Ogre::LBX_ADD_SIGNED, Ogre::LBX_ADD_SMOOTH, Ogre::LBX_BLEND_CURRENT_ALPHA, Ogre::LBX_BLEND_DIFFUSE_ALPHA, Ogre::LBX_BLEND_MANUAL, Ogre::LBX_BLEND_TEXTURE_ALPHA, Ogre::LBX_DOTPRODUCT, Ogre::LBX_MODULATE, Ogre::LBX_MODULATE_X2, Ogre::LBX_MODULATE_X4, Ogre::LBX_SOURCE1, Ogre::LBX_SOURCE2, and Ogre::LBX_SUBTRACT.

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

| return a D3D9 equivalent for a Ogre LayerBlendType value Definition at line 114 of file OgreD3D9Mappings.cpp. References Ogre::LayerBlendType, Ogre::LBT_ALPHA, and Ogre::LBT_COLOUR.

D3DTEXTUREADDRESS Ogre::D3D9Mappings::get | ( | TextureUnitState::TextureAddressingMode | tam | ) | `[static]`

| return a D3D9 equivalent for a Ogre TextureAddressingMode value Definition at line 100 of file OgreD3D9Mappings.cpp.

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

| return a D3D9 equivalent for a Ogre TexCoordCalsMethod value Definition at line 62 of file OgreD3D9Mappings.cpp. References Ogre::TEXCALC_ENVIRONMENT_MAP, Ogre::TEXCALC_ENVIRONMENT_MAP_NORMAL, Ogre::TEXCALC_ENVIRONMENT_MAP_PLANAR, Ogre::TEXCALC_ENVIRONMENT_MAP_REFLECTION, Ogre::TEXCALC_NONE, Ogre::TEXCALC_PROJECTIVE_TEXTURE, and Ogre::TexCoordCalcMethod.

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

| return a D3D9 equivalent for a Ogre LightTypes value Definition at line 48 of file OgreD3D9Mappings.cpp. References Ogre::Light::LightTypes.

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

| return a D3D9 equivalent for a Ogre ShadeOptions value Definition at line 34 of file OgreD3D9Mappings.cpp. References Ogre::ShadeOptions, Ogre::SO_FLAT, Ogre::SO_GOURAUD, and Ogre::SO_PHONG.

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

| Definition at line 559 of file OgreD3D9Mappings.cpp. References Ogre::Matrix4::m.

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

- OgreD3D9Mappings.h
- OgreD3D9Mappings.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:49:26 2004