//********************************************************************
// This source file is part of Ninfa3D Engine
// 
// Copyright (C) 2008-2009 Viz_fuerte.
// All rights reserved.
// 
// LIMITED WARRANTY
// This software is provided "as-is", without any express or implied warranty.
// In no event shall the author be held liable for any damages arising from the use of this software.
// This is a contract. By accepting the Ninfa3D Engine (the SOFTWARE), 
// you (either an individual or a single entity, the LICENSEE) accept the terms and conditions of this licensing agreement.
// 
// If the LICENSEE does not accept the terms and conditions, then LICENSEE must not accept the SOFTWARE.
// If at a later time the LICENSEE decides not to continue licensing the SOFTWARE under these terms and 
// conditions, then the LICENSEE must delete permanently all files constituting the SOFTWARE.
//
// File: Misc.cpp
//********************************************************************

/*--------------------------------------------------------------------
Includos*/

	#include "..\..\Header Files\Ninfa3D.h"

/*--------------------------------------------------------------------
Variables externas*/

	extern IrrlichtDevice* device;
	extern ISceneManager* SceneManager;
	extern IGUIEnvironment* guienv;
	extern IVideoDriver* driver;

/*--------------------------------------------------------------------
Declaration global de funciones*/

extern "C"
{

/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	CIELO
*/

	/*====================================================================
	Crea un cielo con forma esferica.*/

	DLL_EXPORT void* DLL_APIENTRY CreateSkyDome(ITexture* texture,float radius)
	{
		ISceneNode* sky = SceneManager->addSkyDomeSceneNode(texture,64,32,0.9,2.0,radius);
		return (void*)sky;
	}

	/*====================================================================
	Crea un cielo con forma de cubo.*/

	DLL_EXPORT void* DLL_APIENTRY CreateSkyBox(ITexture* top,ITexture* bottom,ITexture* left,ITexture* right,ITexture* front,ITexture* back)
	{
		ISceneNode* sky = SceneManager->addSkyBoxSceneNode(top,bottom,left,right,front,back,0,-1);
		return (void*)sky;
	}

}