//===========================================================================//
// File:	EarComponent_Tool.cpp                                     //
// Project: MUNGA           Brick: Win95 Video Renderer 	                 //
// Contents: Windows95 Layer Video Renderer									 //
//---------------------------------------------------------------------------//
//   Date    Who  Modification                                               //
// --------  ---  ---------------------------------------------------------- //
// 03/23/99  SMJ  Initial coding.                                            //
//---------------------------------------------------------------------------//
// Copyright (C) 1997, Virtual World Entertainment, Inc.                     //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//

#include "AdeptHeaders.hpp"

#include "EarComponent.hpp"

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
EarComponent::ClassData*
	EarComponent::CreateFactoryRequest(FactoryRequestParameters *parameters)
{
	Check_Object(parameters);

	//
	//-------------------------------------------------------------------------
	// Allocate enough room for what we need to write out, then call our parent
	//-------------------------------------------------------------------------
	//
	MemoryStream *component_stream = parameters->m_stream;
	Check_Object(component_stream);
	component_stream->AllocateBytes(sizeof(EarComponent));
	bool result = Component::CreateFactoryRequest(parameters) != NULL;

	//
	//-----------------------
	// Read the viewing state
	//-----------------------
	//
#if 0
	const char* component_name = parameters->componentName;
	Check_Pointer(component_name);
	NotationFile *component_file = parameters->componentFile;
	Check_Object(component_file);
#endif

	//
	//-------------------------
	// Read the clipping planes
	//-------------------------
	//
/*
	Scalar range=100.0f;
	component_file->GetEntry(component_name, "Range", &range);
	*component_stream << range;
*/
	Check_Object(DefaultData);
	return (result) ? DefaultData : NULL;
}
