// 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 NIALPHAACCUMULATOR_H #define NIALPHAACCUMULATOR_H #include "NiBackToFrontAccumulator.h" #include "NiCamera.h" #include "NiGeometry.h" class NIMAIN_ENTRY NiAlphaAccumulator : public NiBackToFrontAccumulator { NiDeclareRTTI; NiDeclareClone(NiAlphaAccumulator); NiDeclareStream; public: // creation and destruction NiAlphaAccumulator (); virtual ~NiAlphaAccumulator (); // Observe the "no sort" NiAlphaProperty hint flags? void SetObserveNoSortHint(bool bObserve); bool GetObserveNoSortHint() const; void SetSortByClosestPoint(bool bClosest); bool GetSortByClosestPoint() const; // *** begin Emergent internal use only *** virtual void RegisterObjectArray (NiVisibleArray& kArray); // *** end Emergent internal use only *** protected: virtual void Sort (); bool m_bObserveNoSortHint; bool m_bSortByClosestPoint; }; typedef NiPointer NiAlphaAccumulatorPtr; //--------------------------------------------------------------------------- // Inline include #include "NiAlphaAccumulator.inl" //--------------------------------------------------------------------------- #endif