IViewportShadingMgr2 Class Reference
 
 
 
IViewportShadingMgr2 Class Reference

#include <IViewportShadingMgr.h>

Inheritance diagram for IViewportShadingMgr2:
IViewportShadingMgr FPStaticInterface FPInterfaceDesc FPInterface BaseInterface InterfaceServer MaxHeapOperators

Class Description

Extends class IViewportShadingMgr.

Public Member Functions

virtual bool  IsHWShadingEnabled (bool bCurrentlyTraversed=false) const =0
  The active viewport can be interpreted by the function is two ways.
virtual bool  IsHWShadingEnabled (const ViewExp &view) const =0
  Get the hardware enabled flag for the view supplied.

Member Function Documentation

virtual bool IsHWShadingEnabled ( bool  bCurrentlyTraversed = false ) const [pure virtual]

The active viewport can be interpreted by the function is two ways.

Firstly if bCurrentlyTraversed is false, the default, the actual active viewport is used. This would be the same as Interface::GetActiveViewport(). Secondly if bCurrentlyTraversed is true, then the viewport that is currently being traversed as part of the viewport rendering will be considered the active viewport. This could be used by a material that needs additional setup if hardware rendering is being performed.

Parameters:
bCurrentlyTraversed Defines what the method will interpret as the active view. See notes for the function.
Returns:
TRUE if enabled
virtual bool IsHWShadingEnabled ( const ViewExp view ) const [pure virtual]

Get the hardware enabled flag for the view supplied.

Parameters:
& view The view to query
Returns:
TRUE if enabled