TextureSwapperViewportFilter/TextureSwapperViewportFilter.h


//**************************************************************************/

// Copyright (c) 2008 Autodesk, Inc.

// All rights reserved.

//

// Use of this software is subject to the terms of the Autodesk license

// agreement provided at the time of installation or download, or which

// otherwise accompanies this software in either electronic or hard copy form.

//

//**************************************************************************/

// DESCRIPTION:

// CREATED: October 2008

//**************************************************************************/



#if defined(JAMBUILD)

#include <Mudbox/mudbox.h>

#else

#include "../../include/Mudbox/mudbox.h"

#endif



using namespace mudbox;



class TextureSwapperViewPortFilter : public ViewPortFilter 

{

public:



    DECLARE_CLASS;






    TextureSwapperViewPortFilter();






    ~TextureSwapperViewPortFilter();











    RequirementValue Requirement( void ) const { return eHDR | ePosition32 | eDepth24 | eNormal16; };














    void Process( ViewPortState & );








    virtual QString Name( const ClassDesc * ) const { return "Texture Swapper Filter"; };

    






    void OnNodeEvent(const Attribute &cAttribute, NodeEventType eType);



private:

    aenum m_aTextureID;

    Texture* m_pResultTexture;

};