// 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


// This file must be kept in sync with the identically named
// NiXbox360ImageTilerLibType.h file in the NiXbox360ImageTiler project.  The
// reason the SaveSourceTextureRendererDataDLL project does not directly
// include the NiXbox360ImageTiler project's version of this file is that the
// NiXbox360ImageTiler project will not exist for non-Xbox 360 releases.

#ifndef NIXBOX360IMAGETILERLIBTYPE_H
#define NIXBOX360IMAGETILERLIBTYPE_H

#include <NiPersistentSrcTextureRendererData.h>

#ifdef NIXBOX360IMAGETILER_EXPORT
    // DLL library project uses this
    #define NIXBOX360IMAGETILER_ENTRY __declspec(dllexport)
#else
#ifdef NIXBOX360IMAGETILER_IMPORT
    // client of DLL uses this
    #define NIXBOX360IMAGETILER_ENTRY __declspec(dllimport)
#else
    // static library project uses this
    #define NIXBOX360IMAGETILER_ENTRY
#endif
#endif

extern "C" NIXBOX360IMAGETILER_ENTRY bool TileImage(
    NiPersistentSrcTextureRendererData* pkPersistentSrcRendererData);

typedef bool (*NiXbox360TileImageFunction)
    (NiPersistentSrcTextureRendererData*);

// Disable warning C4251.  Template classes cannot be exported for the obvious
// reason that the code is not generated until an instance of the class is
// declared.  With this warning enabled, you get thousands of complaints about
// class data members that are of template type.  For example, a member such
// as 'NiTPrimitiveArray<NiAVObject*> m_array' generates the warning.
//
// When maintaining the DLL code itself, you might want to enable the warning
// to check for cases where you might have failed to put the
// NIXBOX360IMAGETILER_ENTRY after the class keyword.  In particular, nested
// classes must have NIXBOX360IMAGETILER_ENTRY.  Also, friend functions must be
// tagged with NIXBOX360IMAGETILER_ENTRY.

#ifdef WIN32
    #pragma warning( disable : 4251 )
#endif
                                      
#endif  // NIXBOX360IMAGETILERLIBTYPE_H
