Added: #1440 Initial configuration for dds convert process
--HG-- branch : build_pipeline_v3hg/feature/build_pipeline_v3
parent
32d53ce3e3
commit
81d1f162b8
@ -1,99 +0,0 @@
|
|||||||
/**
|
|
||||||
* \file process_interface_info.cpp
|
|
||||||
* \brief CProcessInterfaceInfo
|
|
||||||
* \date 2012-03-03 10:10GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CProcessInterfaceInfo
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright (C) 2012 by authors
|
|
||||||
*
|
|
||||||
* This file is part of RYZOM CORE PIPELINE.
|
|
||||||
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
|
||||||
* and/or modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation, either version 2 of
|
|
||||||
* the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
|
||||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with RYZOM CORE PIPELINE; see the file COPYING. If not, see
|
|
||||||
* <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <nel/misc/types_nl.h>
|
|
||||||
#include "process_interface_info.h"
|
|
||||||
|
|
||||||
// STL includes
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
// NeL includes
|
|
||||||
// #include <nel/misc/debug.h>
|
|
||||||
|
|
||||||
// Project includes
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
// using namespace NLMISC;
|
|
||||||
|
|
||||||
namespace PIPELINE {
|
|
||||||
|
|
||||||
CProcessInterfaceInfo::CProcessInterfaceInfo()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
CProcessInterfaceInfo::~CProcessInterfaceInfo()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void CProcessInterfaceInfo::getDependentDirectories(std::vector<std::string> &resultAppend)
|
|
||||||
{
|
|
||||||
{
|
|
||||||
uint nb;
|
|
||||||
if (m_PipelineProcess->getValueNb(nb, "Interface.Atlas"))
|
|
||||||
{
|
|
||||||
for (uint i = 0; i < nb; ++i)
|
|
||||||
{
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << "Interface.Atlas[" << i << "].SrcDirectories";
|
|
||||||
m_PipelineProcess->getValues(resultAppend, ss.str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
uint nb;
|
|
||||||
if (m_PipelineProcess->getValueNb(nb, "Interface.AtlasDxtc"))
|
|
||||||
{
|
|
||||||
for (uint i = 0; i < nb; ++i)
|
|
||||||
{
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << "Interface.AtlasDxtc[" << i << "].SrcDirectories";
|
|
||||||
m_PipelineProcess->getValues(resultAppend, ss.str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << "Interface.Fullscreen.SrcDirectories";
|
|
||||||
m_PipelineProcess->getValues(resultAppend, ss.str());
|
|
||||||
}
|
|
||||||
{
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << "Interface.3D.SrcDirectories";
|
|
||||||
m_PipelineProcess->getValues(resultAppend, ss.str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CProcessInterfaceInfo::getDependentFiles(std::vector<std::string> &resultAppend)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} /* namespace PIPELINE */
|
|
||||||
|
|
||||||
/* end of file */
|
|
@ -1,63 +0,0 @@
|
|||||||
/**
|
|
||||||
* \file process_interface_info.h
|
|
||||||
* \brief CProcessInterfaceInfo
|
|
||||||
* \date 2012-03-03 10:10GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CProcessInterfaceInfo
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright (C) 2012 by authors
|
|
||||||
*
|
|
||||||
* This file is part of RYZOM CORE PIPELINE.
|
|
||||||
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
|
||||||
* and/or modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation, either version 2 of
|
|
||||||
* the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
|
||||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with RYZOM CORE PIPELINE; see the file COPYING. If not, see
|
|
||||||
* <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIPELINE_PROCESS_INTERFACE_INFO_H
|
|
||||||
#define PIPELINE_PROCESS_INTERFACE_INFO_H
|
|
||||||
#include <nel/misc/types_nl.h>
|
|
||||||
|
|
||||||
// STL includes
|
|
||||||
|
|
||||||
// NeL includes
|
|
||||||
|
|
||||||
// Project includes
|
|
||||||
#include "../plugin_library/process_info.h"
|
|
||||||
|
|
||||||
namespace PIPELINE {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief CProcessInterfaceInfo
|
|
||||||
* \date 2012-03-03 10:10GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CProcessInterfaceInfo
|
|
||||||
*/
|
|
||||||
class CProcessInterfaceInfo : public IProcessInfo
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CProcessInterfaceInfo();
|
|
||||||
virtual ~CProcessInterfaceInfo();
|
|
||||||
|
|
||||||
virtual void getDependentDirectories(std::vector<std::string> &resultAppend);
|
|
||||||
virtual void getDependentFiles(std::vector<std::string> &resultAppend);
|
|
||||||
|
|
||||||
NLMISC_DECLARE_CLASS(CProcessInterfaceInfo)
|
|
||||||
}; /* class CProcessInterfaceInfo */
|
|
||||||
|
|
||||||
} /* namespace PIPELINE */
|
|
||||||
|
|
||||||
#endif /* #ifndef PIPELINE_PROCESS_INTERFACE_INFO_H */
|
|
||||||
|
|
||||||
/* end of file */
|
|
@ -0,0 +1,73 @@
|
|||||||
|
/**
|
||||||
|
* \file process_texture_dds.cpp
|
||||||
|
* \brief CProcessTextureDDS
|
||||||
|
* \date 2012-08-04 12:50GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CProcessTextureDDS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2012 by authors
|
||||||
|
*
|
||||||
|
* This file is part of RYZOM CORE PIPELINE.
|
||||||
|
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
||||||
|
* and/or modify it under the terms of the GNU Affero General Public
|
||||||
|
* License as published by the Free Software Foundation, either
|
||||||
|
* version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
||||||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||||
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public
|
||||||
|
* License along with RYZOM CORE PIPELINE. If not, see
|
||||||
|
* <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <nel/misc/types_nl.h>
|
||||||
|
#include "process_texture_dds.h"
|
||||||
|
|
||||||
|
// STL includes
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
// NeL includes
|
||||||
|
#include <nel/misc/debug.h>
|
||||||
|
|
||||||
|
// Project includes
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
// using namespace NLMISC;
|
||||||
|
|
||||||
|
namespace PIPELINE {
|
||||||
|
|
||||||
|
void CProcessTextureDDS::build()
|
||||||
|
{
|
||||||
|
nldebug("Build process plugin: CProcessTextureDDS");
|
||||||
|
m_PipelineProcess->setExit(FINISH_ERROR, "Not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
|
void CProcessTextureDDSInfo::getDependentDirectories(std::vector<std::string> &resultAppend)
|
||||||
|
{
|
||||||
|
{
|
||||||
|
uint nb;
|
||||||
|
if (m_PipelineProcess->getValueNb(nb, "Texture.DDS"))
|
||||||
|
{
|
||||||
|
for (uint i = 0; i < nb; ++i)
|
||||||
|
{
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << "Texture.DDS[" << i << "].SrcDirectories";
|
||||||
|
m_PipelineProcess->getValues(resultAppend, ss.str());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void CProcessTextureDDSInfo::getDependentFiles(std::vector<std::string> &resultAppend)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
} /* namespace PIPELINE */
|
||||||
|
|
||||||
|
/* end of file */
|
@ -0,0 +1,83 @@
|
|||||||
|
/**
|
||||||
|
* \file process_texture_dds.h
|
||||||
|
* \brief CProcessTextureDDS
|
||||||
|
* \date 2012-08-04 12:50GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CProcessTextureDDS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2012 by authors
|
||||||
|
*
|
||||||
|
* This file is part of RYZOM CORE PIPELINE.
|
||||||
|
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
||||||
|
* and/or modify it under the terms of the GNU Affero General Public
|
||||||
|
* License as published by the Free Software Foundation, either
|
||||||
|
* version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
||||||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||||
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public
|
||||||
|
* License along with RYZOM CORE PIPELINE. If not, see
|
||||||
|
* <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef PIPELINE_PROCESS_TEXTURE_DDS_H
|
||||||
|
#define PIPELINE_PROCESS_TEXTURE_DDS_H
|
||||||
|
#include <nel/misc/types_nl.h>
|
||||||
|
|
||||||
|
// STL includes
|
||||||
|
|
||||||
|
// NeL includes
|
||||||
|
|
||||||
|
// Project includes
|
||||||
|
#include "../plugin_library/process_handler.h"
|
||||||
|
#include "../plugin_library/process_info.h"
|
||||||
|
|
||||||
|
namespace PIPELINE {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief CProcessTextureDDS
|
||||||
|
* \date 2012-08-04 12:50GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CProcessTextureDDS
|
||||||
|
*/
|
||||||
|
class CProcessTextureDDS : public IProcessHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CProcessTextureDDS() { }
|
||||||
|
virtual ~CProcessTextureDDS() { }
|
||||||
|
|
||||||
|
void buildAtlas(const std::string &dependLog, const std::string &errorLog, const std::vector<std::string> &srcDirectories, const std::string &dstFile);
|
||||||
|
|
||||||
|
virtual void build();
|
||||||
|
|
||||||
|
NLMISC_DECLARE_CLASS(CProcessTextureDDS)
|
||||||
|
}; /* class CProcessTextureDDS */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief CProcessTextureDDS
|
||||||
|
* \date 2012-08-04 12:50GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CProcessTextureDDS
|
||||||
|
*/
|
||||||
|
class CProcessTextureDDSInfo : public IProcessInfo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CProcessTextureDDSInfo() { }
|
||||||
|
virtual ~CProcessTextureDDSInfo() { }
|
||||||
|
|
||||||
|
virtual void getDependentDirectories(std::vector<std::string> &resultAppend);
|
||||||
|
virtual void getDependentFiles(std::vector<std::string> &resultAppend);
|
||||||
|
|
||||||
|
NLMISC_DECLARE_CLASS(CProcessTextureDDSInfo)
|
||||||
|
}; /* class CProcessTextureDDS */
|
||||||
|
|
||||||
|
} /* namespace PIPELINE */
|
||||||
|
|
||||||
|
#endif /* #ifndef PIPELINE_PROCESS_TEXTURE_DDS_H */
|
||||||
|
|
||||||
|
/* end of file */
|
@ -1,7 +1,6 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<DFN Revision="$Revision$" State="modified">
|
<DFN Revision="$Revision$" State="modified">
|
||||||
<ELEMENT Name="Atlas" Type="Dfn" Filename="pipeline_common_id_of.dfn" Array="true"/>
|
<ELEMENT Name="Atlas" Type="Dfn" Filename="pipeline_common_id_of.dfn" Array="true"/>
|
||||||
<ELEMENT Name="Fullscreen" Type="Dfn" Filename="pipeline_common_id_od.dfn" Array="false"/>
|
|
||||||
<ELEMENT Name="3D" Type="Dfn" Filename="pipeline_common_id_od.dfn" Array="false"/>
|
<ELEMENT Name="3D" Type="Dfn" Filename="pipeline_common_id_od.dfn" Array="false"/>
|
||||||
<LOG></LOG>
|
<LOG></LOG>
|
||||||
</DFN>
|
</DFN>
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<DFN Revision="$Revision$" State="modified">
|
||||||
|
<ELEMENT Name="DDS" Type="Dfn" Filename="pipeline_process_texture_dds.dfn" Array="true"/>
|
||||||
|
<LOG>Sat Aug 04 15:26:07 2012 (kaetemi) Dfn Structure = </LOG>
|
||||||
|
</DFN>
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<DFN Revision="$Revision$" State="modified">
|
||||||
|
<ELEMENT Name="SrcDirectories" Type="Type" Filename="pipeline_path_endslash.typ" Array="true"/>
|
||||||
|
<ELEMENT Name="DstDirectory" Type="Type" Filename="pipeline_path_endslash.typ"/>
|
||||||
|
<ELEMENT Name="Algorithm" Type="Type" Filename="string.typ"/>
|
||||||
|
<ELEMENT Name="CreateMipMap" Type="Type" Filename="boolean.typ"/>
|
||||||
|
<ELEMENT Name="ReduceFactor" Type="Type" Filename="uint8.typ" Default="0"/>
|
||||||
|
<LOG>Sat Aug 04 15:22:53 2012 (kaetemi) Dfn Structure = </LOG>
|
||||||
|
</DFN>
|
Loading…
Reference in New Issue