/***************************************************************************
 *                          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 ITextureContainerLoader
 *   Implements methods to load textures from containers (texture packs
 *   or archives). Containers can use standard texture loaders if required.
 *   The length is returned in pLen if available.
 *--------------------------------------------------------------------------
 * @created: Sunday, March 21, 2004 13:52:24
 */

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


namespace rend
{
  
  class ITextureContainerLoader : public ZUnknown
  {
  public:
    virtual ZRESULT setContainerName(ZString strName)=0;
    virtual ZRESULT setContainerStream(core::io::IStream* pStream)=0;
    virtual ZRESULT enumTextures(ZStringSeq& seqNames)=0;
    /* Loads texture */
    virtual ZRESULT loadTexture(ZString strName, rend::ITexture** ppTexture)=0;
  
  };//class ITextureContainerLoader
  
  //
  // collection template
  //
  class CTextureContainerLoaderCol : public ZUnknown,
      public ZIntrCollection<ITextureContainerLoader>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CTextureContainerLoaderCol)
  };//class CTextureContainerLoaderCol
};//rend

#endif
