Public Types | Public Member Functions

IDxMaterial2 Class Reference

Search for all occurrences

Detailed Description

Description
This includes a new interface to help extract mapping and texture usage. With the new UI and general updates to the DirectX 9 Shader, the developer can access the mapping data directly from the paramblock hosting the effect parameters

#include <IDxMaterial.h>

Inheritance diagram for IDxMaterial2:
Inheritance graph
[legend]

List of all members.

Public Types

enum   BitmapTypes {
  UNKNOWN_MAP, DIFFUSE_MAP, BUMP_MAP, SPECULAR_MAP,
  OPACITY_MAP, DISPLACEMENT_MAP, LIGHTMAP_MAP, NORMAL_MAP,
  REFLECTION_MAP
}

Public Member Functions

virtual int  GetBitmapMappingChannel (int index)=0
  Get the Mapping channel defined for the texture.
virtual BitmapTypes  GetBitmapUsage (int index)=0
  Get the usage of the bitmap.
virtual void  SetMappingChannel (int bitmapIndex, int mapChannel)=0
  Set the mapping channel for the bitmap.

Member Enumeration Documentation


Member Function Documentation

virtual int GetBitmapMappingChannel ( int  index ) [pure virtual]

Get the Mapping channel defined for the texture.

The mapping channel as specified in the Effect file. If no mapping is defined then this will be mapping channel 0

Parameters:
index The index of the bitmap to access
Returns:
The mapping channel for the texture
virtual BitmapTypes GetBitmapUsage ( int  index ) [pure virtual]

Get the usage of the bitmap.

This is typically the usuage as seen from 3dsmax. The usage is based on the Semantic used in the effect file This would be used in conjunction with GetNumberOfEffectBitmaps

Parameters:
index The index of the bitmap to query
Returns:
The usage of the bitmap
virtual void SetMappingChannel ( int  bitmapIndex,
int  mapChannel 
) [pure virtual]

Set the mapping channel for the bitmap.

This would be used in conjunction with GetNumberOfEffectBitmaps

Parameters:
bitmapIndex The index of the bitmap
mapChannel The mapping channel value

IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2
IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2 IDxMaterial2