/***************************************************************************
 *                          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 ITextureLoader
 *--------------------------------------------------------------------------
 * @created: Monday, July 07, 2003 17:33:49
 */

#if !defined(ITextureLoader_h_included)
#define ITextureLoader_h_included
//forward declaration of this class might require
namespace rend
{ class ITextureLoader; class CTextureLoaderCol; };
#include <zmodeler.h>
#include <rend/renderTypes.h>
#include <core/io/IStream.h>
#include <rend/ITexture.h>


namespace rend
{
  
  class ITextureLoader : public ZUnknown
  {
  public:
    virtual ZRESULT getExtension(ZString& strExt)=0;
    virtual ZRESULT getFormatPrompt(ZString& strPrompt)=0;
    virtual ZRESULT loadTexture(core::io::IStream* pStream, ZString strName, rend::ITexture** ppTexture, bool bLODTexture=true)=0;
  
  };//class ITextureLoader
  
  //
  // collection template
  //
  class CTextureLoaderCol : public ZUnknown,
      public ZIntrCollection<ITextureLoader>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CTextureLoaderCol)
  };//class CTextureLoaderCol
};//rend

#endif
