/***************************************************************************
 *   Copyright (C) 1998-2009 by authors (see AUTHORS.txt )                 *
 *                                                                         *
 *   This file is part of LuxRender.                                       *
 *                                                                         *
 *   Lux Renderer 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 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   Lux Renderer 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 this program.  If not, see <http://www.gnu.org/licenses/>. *
 *                                                                         *
 *   This project is based on PBRT ; see http://www.pbrt.org               *
 *   Lux Renderer website : http://www.luxrender.org                       *
 ***************************************************************************/

#ifndef LUX_PYFLEXIMAGE_H
#define LUX_PYFLEXIMAGE_H

void export_PyFlexImageFilm()
{
	using namespace boost::python;
	using namespace lux;

	// Set up a fake module for these items
	object flexImageFilm(handle<>(borrowed(PyImport_AddModule("pylux.FlexImageFilm"))));
	scope().attr("FlexImageFilm") = flexImageFilm;
	scope flexImageFilmScope = flexImageFilm;
	
	flexImageFilmScope.attr("__doc__") = ds_pylux_FlexImageFilm;
	flexImageFilmScope.attr("__package__") = "pylux.FlexImageFilm";

	// TODO: don't rely on arbitrary int values, or having to
	// include half the core headers
	
	/*
	enum_<int>("OutputChannels", "")
		.value("Y",					0) //FlexImageFilm::Y)
		.value("YA",				1) //FlexImageFilm::YA)
		.value("RGB",				2) //FlexImageFilm::RGB)
		.value("RGBA",				3) //FlexImageFilm::RGBA)
		;

	enum_<int>("ZBufNormalization", "")
		.value("None",				0) //FlexImageFilm::None)
		.value("CameraStartEnd",	1) //FlexImageFilm::CameraStartEnd)
		.value("MinMax",			2) //FlexImageFilm::MinMax)
		;
	*/

	// TODO: can't have more than one enum_<int>, causes RuntimeWarnings
	// need to use reference to real enum

	enum_<int>("TonemapKernels", "Available tonemap kernel types")
		.value("Reinhard",			0) //FlexImageFilm::TMK_Reinhard)
		.value("Linear",			1) //FlexImageFilm::TMK_Linear)
		.value("Contrast",			2) //FlexImageFilm::TMK_Contrast)
		.value("MaxWhite",			3) //FlexImageFilm::TMK_MaxWhite)
		.value("AutoLinear",		4) //FlexImageFilm::TMK_AutoLinear)
		;
}

#endif	// LUX_PYFLEXIMAGE_H
