mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 16:49:55 +00:00
52 lines
829 B
C++
52 lines
829 B
C++
#include "rendering_manager.hpp"
|
|
|
|
namespace MWRender {
|
|
|
|
RenderingManager::RenderingManager (SkyManager *skyManager) :
|
|
mSkyManager(skyManager)
|
|
{
|
|
|
|
}
|
|
|
|
RenderingManager::~RenderingManager ()
|
|
{
|
|
delete mSkyManager;
|
|
}
|
|
|
|
void RenderingManager::skyEnable ()
|
|
{
|
|
mSkyManager->enable();
|
|
}
|
|
|
|
void RenderingManager::skyDisable ()
|
|
{
|
|
mSkyManager->disable();
|
|
}
|
|
|
|
void RenderingManager::skySetHour (double hour)
|
|
{
|
|
mSkyManager->setHour(hour);
|
|
}
|
|
|
|
|
|
void RenderingManager::skySetDate (int day, int month)
|
|
{
|
|
mSkyManager->setDate(day, month);
|
|
}
|
|
|
|
int RenderingManager::skyGetMasserPhase() const
|
|
{
|
|
return mSkyManager->getMasserPhase();
|
|
}
|
|
|
|
int RenderingManager::skyGetSecundaPhase() const
|
|
{
|
|
return mSkyManager->getSecundaPhase();
|
|
}
|
|
|
|
void RenderingManager::skySetMoonColour (bool red)
|
|
{
|
|
mSkyManager->setMoonColour(red);
|
|
}
|
|
|
|
}
|