imrShader.h File Reference

This reference page is linked to from the following overview topics: Mental Ray Classes.


#include "..\tab.h"
#include "..\maxtypes.h"
#include "..\BaseInterface.h"
#include "..\strclass.h"

Go to the source code of this file.

Classes

class   imrShader

Defines

#define  IMRSHADER_INTERFACE_ID   Interface_ID(0x3b2f7b97, 0x5766e45)

Functions

imrShader GetIMRShader (InterfaceServer *iserver)
bool  IsIMRShader (InterfaceServer *iserver)
ReferenceTarget GetReferenceTarget (imrShader *shader)

Define Documentation

#define IMRSHADER_INTERFACE_ID   Interface_ID(0x3b2f7b97, 0x5766e45)

Definition at line 31 of file imrShader.h.


Function Documentation

imrShader* GetIMRShader ( InterfaceServer iserver ) [inline]

Definition at line 93 of file imrShader.h.

                                                         {

    if(iserver == NULL)
        return NULL;
    else
        return static_cast<imrShader*>(iserver->GetInterface(IMRSHADER_INTERFACE_ID));
}
bool IsIMRShader ( InterfaceServer iserver ) [inline]

Definition at line 107 of file imrShader.h.

                                                  {

    return (GetIMRShader(iserver) != NULL);
}
ReferenceTarget* GetReferenceTarget ( imrShader shader ) [inline]

Definition at line 117 of file imrShader.h.

                                                              {

    return ((shader != NULL) ? &shader->GetReferenceTarget() : NULL);
}