/***************************************************************************
 *                          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 IEngine
 *   Rendering engine interface. Can be implemented by various engine
 *   components. Primary purpose is to render lines, polygons and manage
 *   textures.
 *   IEngine transparently inherits
 *   - core::IProfileable
 *   - core::INamed
 *--------------------------------------------------------------------------
 * @created: Saturday, September 21, 2002 13:45:49
 */

#if !defined(IEngine_h_included)
#define IEngine_h_included
//forward declaration of this class might require
namespace rend
{ class IEngine; };
#include <zmodeler.h>
#include <rend/renderTypes.h>

namespace rend
{
  
  class IEngine : public ZUnknown
  {
  public:
    /* Performs engine intialization. */
    virtual ZRESULT initialize(void)=0;
    /* Provides set of devices names supported by the engine. */
    virtual ZRESULT enumDevices(ZStringSeq& strSeq)=0;
    /* Provides device-specific set of dialog boxes */
    virtual ZRESULT getDeviceConfig(ZString strDevice, core::layout::CChildDialogCol** ppDialogs)=0;
    /* Performs creation of device. the device is operatable. */
    virtual ZRESULT createDevice(ZString strName, IDevice** ppDevice)=0;
  
  };//class IEngine
};//rend

#endif
