// 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 NISPECULARPROPERTY_H
#define NISPECULARPROPERTY_H

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

NiSmartPointer(NiSpecularProperty);

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

public:
    NiSpecularProperty();

    void SetSpecular(bool bSpec);
    bool GetSpecular() const;

    bool IsEqualFast(const NiSpecularProperty& kProp) const;

    virtual int Type() const;
    static int GetType();
    static NiSpecularProperty* 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
    {
        SPEC_MASK = 0x0001
    };

    static NiSpecularPropertyPtr ms_spDefault;
};

#include "NiSpecularProperty.inl"

#endif

