/***********************************************************
*									     GLE32 Extrusion Library							*
*							Copyright© 2000 - 2017 by Dave Richards	 			*
*										  All Rights Reserved.							*
*												Ver 6.0									*
*																				       		*
*											HISTORY:										*
*									Linas Vepstas 1990 - 1997							*
*									Dave Richards  2000 - 2017						*
*																							*
************************************************************/

#pragma once


//----------------------------------------------------------------------------
class  CgleToroidExtrusion : protected CgleLatheExtrusion
{

public:

	CgleToroidExtrusion(int Points, double StartXForm[2][3], double Sweep, int Facets);

	virtual ~CgleToroidExtrusion();


	using CgleLatheExtrusion::SetExtrusionMode;   	// redeclare as public
	using CgleLatheExtrusion::GetExtrusionMode;

	using CgleLatheExtrusion::SetTextureMode;
	using CgleLatheExtrusion::GetTextureMode;

	using CgleLatheExtrusion::UseLitMaterial;
	using CgleLatheExtrusion::IsUsingLitMaterial;

	using CgleLatheExtrusion::LoadUpVector;



	void   Draw(double CrossSectionRadius, double StartRadius,
							double dRadiusdTheta, double StartZ,
							double dZdTheta, double StartTheta,
							float Color_Array[][3], bool bTextured = false);

	void   WireDraw(double CrossSectionRadius, double StartRadius,
							double dRadiusdTheta, double StartZ,
							double dZdTheta, double StartTheta,
							float Color_Array[][3], bool bTextured = false);


private:

	int FFacets;
};
//----------------------------------------------------------------------------
