123
This commit is contained in:
54
CryCommon/ILMSerializationManager.h
Normal file
54
CryCommon/ILMSerializationManager.h
Normal file
@@ -0,0 +1,54 @@
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Crytek Engine Source File.
|
||||
// Copyright (C), Crytek Studios, 2002.
|
||||
// -------------------------------------------------------------------------
|
||||
// File name: ILMSerializationManager.h
|
||||
// Version: v1.00
|
||||
// Created: 02/07/2003 by Sergiy Migdalskiy
|
||||
// Compilers: Visual Studio.NET
|
||||
// Description: LightMap Serialization interface
|
||||
// -------------------------------------------------------------------------
|
||||
// History:
|
||||
// 02/07/2003 Extracted declaration from I3dEngine.h to be able to easy
|
||||
// modify it
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _CRY_COMMON_LM_SERIALIZATION_MANAGER_HDR_
|
||||
#define _CRY_COMMON_LM_SERIALIZATION_MANAGER_HDR_
|
||||
|
||||
#include <IEntitySystem.h>
|
||||
|
||||
//! \brief Interface for lightmap serialization
|
||||
struct ILMSerializationManager
|
||||
{
|
||||
virtual void Release() = 0;
|
||||
|
||||
//!
|
||||
virtual bool ApplyLightmapfile( const char *pszFileName, std::vector<struct IEntityRender *>& vIGLMs ) = 0;
|
||||
//!
|
||||
|
||||
virtual bool Load( const char *pszFileName, const bool cbNoTextures ) = 0;
|
||||
|
||||
//!
|
||||
virtual unsigned int Save( const char *pszFileName, struct LMGenParam sParams, const bool cbAppend = false ) = 0;
|
||||
//!
|
||||
//! /param _pColorLerp4 if !=0 this memory is copied
|
||||
//! /param _pDomDirection3 if !=0 this memory is copied
|
||||
virtual void AddRawLMData(
|
||||
const DWORD indwWidth, const DWORD indwHeight, const std::vector<int>& _cGLM_IDs_UsingPatch,
|
||||
BYTE *_pColorLerp4, BYTE *_pHDRColorLerp4, BYTE *_pDomDirection3, BYTE *_pOccl2) = 0;
|
||||
//!
|
||||
virtual void AddTexCoordData( const std::vector<struct TexCoord2Comp>& vTexCoords, int iGLM_ID_UsingTexCoord, const DWORD indwHashValue, const std::vector<std::pair<EntityId, EntityId> >& rOcclIDs) = 0;
|
||||
|
||||
//! for rebuild changes feature
|
||||
//! /return 0x12341234 if this object wasn't in the list
|
||||
virtual DWORD GetHashValue( const int iniGLM_ID_UsingTexCoord ) const=0;
|
||||
|
||||
//! Create a dot3 lightmap ColorLerp / DomDirection tetxure pair
|
||||
virtual RenderLMData * CreateLightmap(const char *pszFileName, int nItem, UINT iWidth, UINT iHeight, BYTE *pColorLerp4, BYTE *pHDRColorLerp4, BYTE *pDomDirection3, BYTE *pOccl2 = 0)=0;
|
||||
|
||||
virtual bool ExportDLights(const char *pszFileName, const CDLight **ppLights, UINT iNumLights, bool bNewZip = true) const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user