/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class ITextureEventHandler
 *--------------------------------------------------------------------------
 * @created: Monday, July 07, 2003 19:08:53
 */

#if !defined(ITextureEventHandler_h_included)
#define ITextureEventHandler_h_included
//forward declaration of this class might require
namespace core
{ namespace events
  { class ITextureEventHandler; class CTextureEventHandlerCol; }; };
#include <zmodeler.h>
#include <core/events/eventsTypes.h>
#include <core/events/IEventHandler.h>
#include <rend/ITexture.h>


namespace core
{
  namespace events
  {
    
    class ITextureEventHandler : public core::events::IEventHandler
    {
    public:
      virtual ZRESULT onLoadTexture(rend::ITexture* pTexture)=0;
      virtual ZRESULT onUnloadTexture(rend::ITexture* pTexture)=0;
      virtual ZRESULT onUpdateTexture(rend::ITexture* pTexture)=0;
    
    };//class ITextureEventHandler
    
    //
    // collection template
    //
    class CTextureEventHandlerCol : public ZUnknown,
        public ZIntrCollection<ITextureEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CTextureEventHandlerCol)
    };//class CTextureEventHandlerCol
  };//events
};//core

#endif
