Public Member Functions

EffectDescriptor Class Reference

This reference page is linked to from the following overview topics: Obtaining Shader Parameters.


Search for all occurrences

Detailed Description

A mini Max class descriptor. This is purely to instantiate multiple objects, and query the Parser ID for the DLL.

#include <RTMax.h>

Inheritance diagram for EffectDescriptor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~EffectDescriptor ()
  Destructor.
virtual IEffectParser CreateParser ()=0
  Called by the system to create an instance of the parser.
virtual ULONG  GetParserID ()=0
  The unique ID that is used in the effect file.
virtual const MCHAR *  GetParserFileFilterName ()=0
  The string to go along with the extension supported to be displayed in the Open Dialog box.
virtual const MCHAR *  GetParserFileExtension ()=0
  Get the support file extension for the parser.

Constructor & Destructor Documentation

virtual ~EffectDescriptor ( ) [inline, virtual]

Destructor.

{;}

Member Function Documentation

virtual IEffectParser* CreateParser ( ) [pure virtual]

Called by the system to create an instance of the parser.

Returns:
A valid pointer to the parser
virtual ULONG GetParserID ( ) [pure virtual]

The unique ID that is used in the effect file.

The system will look at the effect file and then will get the ID. it will then use this ID to query for a parser

Returns:
The ID of this parser
virtual const MCHAR* GetParserFileFilterName ( ) [pure virtual]

The string to go along with the extension supported to be displayed in the Open Dialog box.

This should be in the form "Microsoft Direct3D Effects"

virtual const MCHAR* GetParserFileExtension ( ) [pure virtual]

Get the support file extension for the parser.

The system will filter "like" extensions. This is only used for the open dialog box. The ParamID is still used to define the actual parser to use. THe string should be in the form "*.fx"


EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor
EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor EffectDescriptor