/*
 *	osgART/GenericVideoShader
 *	osgART: AR ToolKit for OpenSceneGraph
 *
 *	Copyright (c) 2005-2007 ARToolworks, Inc. All rights reserved.
 *	
 *	Rev		Date		Who		Changes
 *  1.0   	2006-12-08  ---     Version 1.0 release.
 *
 */
/*
 * This file is part of osgART - AR Toolkit for OpenSceneGraph
 *
 * Copyright (c) 2005-2007 ARToolworks, Inc. All rights reserved.
 *
 * (See the AUTHORS file in the root of this distribution.)
 *
 *
 * OSGART 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.
 *
 * OSGART 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 OSGART; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */


/**
 *  \file  GenericVideoShader
 *  \brief Defined a Video Shader effect.
 * 
 * 
 * class for creating video effect on the GPU with hardware shader technology.
 * our system HLSL shader (OpenGL 2.0) with the intrinsic implementation on OSG.
 *
 *
 *   History :
 *
 *  \author Raphael Grasset Raphael.Grasset@hitlabnz.org
 *  \version 3.1
 *  \date 01/12/07
 **/

#ifndef OSGART_GENERICVIDEOSHADER
#define OSGART_GENERICVIDEOSHADER

// OSG include
#include <osg/Node>
#include <osg/Group>
#include <osg/MatrixTransform>
#include <osg/Geometry>
#include <osg/Projection>
#include <osg/Geometry>
#include <osg/Projection>
#include <osg/Referenced>

// local include
#include "osgART/Export"

namespace osgART {

	/**
	 * class GenericVideoShader.
	 * Encapsulate a shader effect for video objects.
	 * A video shader can be apply to a VideoObject.
	 *
	 */
	class OSGART_EXPORT GenericVideoShader : public osg::Referenced
	{
	public:        
		/** 
		* \brief default constructor.
		*/    
		GenericVideoShader();

		/**
		* \brief friend method for changing virtual state of a video object.
		*/
		virtual void apply(osg::StateSet&) = 0;
		
		osg::Program* m_program;//shader program
		osg::Shader* m_vp;//vertex program
		osg::Shader* m_fp;//fragment program
		
	protected:
	
		/**
		 * \brief destructor.
		 */
		virtual ~GenericVideoShader();
		
	};
}

#endif 
