/*
    Skybox.h


    -------------------------------
    Copyright (c) 2022 MCL Software
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#ifndef SKYBOX_H
#define CREDITS_H

#include "Base.h"

#ifdef _WIN32
#include <irrlicht.h>
#else
#include <irrlicht/irrlicht.h>
#endif



class SkyboxManager
{
    public:
        enum Skybox
        {
            CLOUDS,
            NIGHT,
            WOODS,
            CITY,
            FOG,
            SUNSET
        };

        void setSkybox(Skybox skybox)
        {
            if(skybox == CLOUDS)
            {
                pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/clouds_top.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"), pb.driver -> getTexture("img/sky/clouds.jpg"));
                return;
            }

            if(skybox == NIGHT)
            {
                pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"), pb.driver -> getTexture("img/sky/night.jpg"));
                return;
            }

            if(skybox == CITY)
            {
                pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/city/city1-5.jpg"), pb.driver -> getTexture("img/sky/city/city1-4.jpg"), pb.driver -> getTexture("img/sky/city/city1-1.jpg"), pb.driver -> getTexture("img/sky/city/city1-3.jpg"), pb.driver -> getTexture("img/sky/city/city1-0.jpg"), pb.driver -> getTexture("img/sky/city/city1-2.jpg"));
                return;
            }

            if(skybox == FOG)
            {
                pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/fog/fog.jpg"), pb.driver -> getTexture("img/sky/fog/fog.jpg"), pb.driver -> getTexture("img/sky/fog/fog_bottom.jpg"), pb.driver -> getTexture("img/sky/fog/fog_top.jpg"), pb.driver -> getTexture("img/sky/fog/fog_right.jpg"), pb.driver -> getTexture("img/sky/fog/fog_left.jpg"));
                return;
            }

            if(skybox == SUNSET)
            {
                pb.scnmgr -> addSkyBoxSceneNode(pb.driver -> getTexture("img/sky/sunset/sunset_top.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset_sun.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"), pb.driver -> getTexture("img/sky/sunset/sunset.jpg"));
                return;
            }
        }
};



#endif
