/*
 * Copyright (c) 2008-2017, NVIDIA CORPORATION.  All rights reserved.
 *
 * NVIDIA CORPORATION and its licensors retain all intellectual property
 * and proprietary rights in and to this software, related documentation
 * and any modifications thereto.  Any use, reproduction, disclosure or
 * distribution of this software and related documentation without an express
 * license agreement from NVIDIA CORPORATION is strictly prohibited.
 */


#ifndef MODULE_CONVERSIONCLOTHINGGRAPHICALLODPARAMETERS_0P0_0P1H_H
#define MODULE_CONVERSIONCLOTHINGGRAPHICALLODPARAMETERS_0P0_0P1H_H

#include "NvParamConversionTemplate.h"
#include "ClothingGraphicalLodParameters_0p0.h"
#include "ClothingGraphicalLodParameters_0p1.h"

namespace nvidia {
namespace apex {
namespace legacy {


typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::ClothingGraphicalLodParameters_0p0, 
						nvidia::parameterized::ClothingGraphicalLodParameters_0p1, 
						nvidia::parameterized::ClothingGraphicalLodParameters_0p0::ClassVersion, 
						nvidia::parameterized::ClothingGraphicalLodParameters_0p1::ClassVersion>
						ConversionClothingGraphicalLodParameters_0p0_0p1Parent;

class ConversionClothingGraphicalLodParameters_0p0_0p1: public ConversionClothingGraphicalLodParameters_0p0_0p1Parent
{
public:
	static NvParameterized::Conversion* Create(NvParameterized::Traits* t)
	{
		void* buf = t->alloc(sizeof(ConversionClothingGraphicalLodParameters_0p0_0p1));
		return buf ? PX_PLACEMENT_NEW(buf, ConversionClothingGraphicalLodParameters_0p0_0p1)(t) : 0;
	}

protected:
	ConversionClothingGraphicalLodParameters_0p0_0p1(NvParameterized::Traits* t) : ConversionClothingGraphicalLodParameters_0p0_0p1Parent(t) {}

	bool convert()
	{
		//TODO:
		//	write custom conversion code here using mNewData and mLegacyData members
		//	note that members with same names were already copied in parent converter
		// and mNewData was already initialized with default values

		mNewData->renderMeshAssetPointer = NULL;

		return true;
	}
};


}
}
} //nvidia::apex::legacy

#endif
