cgFx/cgfxPassStateSetter.h
#ifndef _cgfxPassStateSetter_h_
#define _cgfxPassStateSetter_h_
#include <maya/MStateManager.h>
#include "cgfxShaderCommon.h"
class cgfxPassStateSetter
{
public:
enum ViewportMode
{
kDefaultViewport,
kVP20Viewport,
kUnknown
};
static bool registerCgStateCallBacks(ViewportMode mode);
cgfxPassStateSetter();
~cgfxPassStateSetter();
bool isPushPopAttribsRequired() const { return fIsPushPopAttribsRequired; }
private:
static ViewportMode sActiveViewportMode;
bool fIsPushPopAttribsRequired;
cgfxPassStateSetter(const cgfxPassStateSetter&);
const cgfxPassStateSetter& operator=(const cgfxPassStateSetter&);
};
#endif