// EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Emergent Game Technologies and may not 
// be copied or disclosed except in accordance with the terms of that 
// agreement.
//
//      Copyright (c) 1996-2007 Emergent Game Technologies.
//      All Rights Reserved.
//
// Emergent Game Technologies, Chapel Hill, North Carolina 27517
// http://www.emergent.net

#ifndef NIDITHERPROPERTY_H
#define NIDITHERPROPERTY_H

#include "NiProperty.h"
#include "NiFlags.h"

NiSmartPointer(NiDitherProperty);

class NIMAIN_ENTRY NiDitherProperty : public NiProperty
{
    NiDeclareRTTI;
    NiDeclareClone(NiDitherProperty);
    NiDeclareStream;
    NiDeclareViewerStrings;
    NiDeclareFlags(unsigned short);

public:
    NiDitherProperty();

    void SetDithering(bool bDither);
    bool GetDithering() const;

    bool IsEqualFast(const NiDitherProperty& kProp) const;

    virtual int Type() const;
    static int GetType();
    static NiDitherProperty* GetDefault();

    // *** begin Emergent internal use only ***

    static void _SDMInit();
    static void _SDMShutdown();

    // *** end Emergent internal use only ***

protected:
    // --- Begin NIF conversion code
    // Deprecated flags - use new flag code
    enum
    {
        MAX_POS = 1
    };
    // --- End NIF conversion code

    // flags
    enum
    {
        DITHER_MASK = 0x0001
    };

    static NiDitherPropertyPtr ms_spDefault;
};

//  Inline include
#include "NiDitherProperty.inl"

#endif

